From 241732af058f9b161c88a9775ba3f3390fff490e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 26 Mar 2013 17:51:02 +0100 Subject: Remove unused sr_ptr monster_type field --- src/monster2.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/monster2.c') 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; -- cgit v1.2.3