summaryrefslogtreecommitdiff
path: root/src/monster2.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-03-26 17:51:02 +0100
committerBardur Arantsson <bardur@scientician.net>2013-09-27 14:46:41 +0200
commit241732af058f9b161c88a9775ba3f3390fff490e (patch)
tree409461d8a665e4584754d7ac1653cf2274357def /src/monster2.c
parent03d0833d8b0124ce7f39aec6842b1b252002d296 (diff)
Remove unused sr_ptr monster_type field
Diffstat (limited to 'src/monster2.c')
-rw-r--r--src/monster2.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/monster2.c b/src/monster2.c
index 845434b1..d09f5cf6 100644
--- a/src/monster2.c
+++ b/src/monster2.c
@@ -492,10 +492,6 @@ void delete_monster_idx(int i)
delete_object_idx(this_o_idx);
}
- /* Delete mind & special race if needed */
- if (m_ptr->sr_ptr)
- KILL(m_ptr->sr_ptr, monster_race);
-
/* Wipe the Monster */
m_ptr = WIPE(m_ptr, monster_type);
@@ -614,10 +610,6 @@ static void compact_monsters_aux(int i1, int i2)
/* Structure copy */
COPY(&m_list[i2], &m_list[i1], monster_type);
- /* Delete mind & special race if needed */
- if (m_list[i1].sr_ptr)
- KILL(m_list[i1].sr_ptr, monster_race);
-
/* Wipe the hole */
m_ptr = WIPE(&m_list[i1], monster_type);
}
@@ -736,11 +728,6 @@ void wipe_m_list(void)
/* Monster is gone */
cave[m_ptr->fy][m_ptr->fx].m_idx = 0;
- /* Delete mind & special race if needed */
- if (m_ptr->sr_ptr)
- KILL(m_ptr->sr_ptr, monster_race);
-
-
/* Wipe the Monster */
m_ptr = WIPE(m_ptr, monster_type);
}
@@ -2316,9 +2303,6 @@ s16b place_monster_one(int y, int x, int r_idx, int ego, bool_ slp, int status)
m_ptr->r_idx = r_idx;
m_ptr->ego = ego;
- /* No special, no mind */
- m_ptr->sr_ptr = NULL;
-
/* Place the monster at the location */
m_ptr->fy = y;
m_ptr->fx = x;