summaryrefslogtreecommitdiff
path: root/src/monster3.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-19 17:09:03 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-19 19:32:06 +0100
commit946d101429a49b656ee37ad00a927787e2d463fd (patch)
tree99623edd7ad64502efbdefcc2ad1eaf693a062b2 /src/monster3.c
parent6a077f767bab67c5847e6ccf98513151462879a4 (diff)
Remove dead (#if 0) code.
Diffstat (limited to 'src/monster3.c')
-rw-r--r--src/monster3.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/monster3.c b/src/monster3.c
index 81c6c2d0..786c6041 100644
--- a/src/monster3.c
+++ b/src/monster3.c
@@ -45,10 +45,7 @@ bool is_enemy(monster_type *m_ptr, monster_type *t_ptr)
{
monster_race *r_ptr = &r_info[m_ptr->r_idx], *rt_ptr = &r_info[t_ptr->r_idx];
int s1 = is_friend(m_ptr), s2 = is_friend(t_ptr);
-#if 0
- /* Stupid monsters attacks just about everything */
- if ((r_ptr->flags2 & RF2_STUPID) && (r_ptr->d_char != rt_ptr->d_char)) return TRUE;
-#endif
+
/* Monsters hates breeders */
if ((m_ptr->status != MSTATUS_NEUTRAL) && (rt_ptr->flags4 & RF4_MULTIPLY) && (num_repro > MAX_REPRO * 2 / 3) && (r_ptr->d_char != rt_ptr->d_char)) return TRUE;
if ((t_ptr->status != MSTATUS_NEUTRAL) && (r_ptr->flags4 & RF4_MULTIPLY) && (num_repro > MAX_REPRO * 2 / 3) && (r_ptr->d_char != rt_ptr->d_char)) return TRUE;
@@ -67,11 +64,6 @@ bool change_side(monster_type *m_ptr)
/* neutrals and companions */
switch (m_ptr->status)
{
-#if 0
- case MSTATUS_ENEMY:
- m_ptr->status = MSTATUS_FRIEND;
- break;
-#endif
case MSTATUS_FRIEND:
m_ptr->status = MSTATUS_ENEMY;
if ((r_ptr->flags3 & RF3_ANIMAL) && (!(r_ptr->flags3 & RF3_EVIL)))