]> granicus.if.org Git - nethack/commit
boulder/statue/landmine reversal and new fix
authornethack.allison <nethack.allison>
Sat, 30 Mar 2002 14:46:31 +0000 (14:46 +0000)
committernethack.allison <nethack.allison>
Sat, 30 Mar 2002 14:46:31 +0000 (14:46 +0000)
commitc49130e5bd91f1a5291e4ffe42aa1fead8bd03c6
treee6e3f3a26b8df8e81817828b7925a9546412ce05
parent11b18740907e64fbbaedaa8d1e9f8f28f0af8ca0
boulder/statue/landmine reversal and new fix
This includes a reversal of my earlier
boulder/statue/landmine fix,
and places a check for obj->where==OBJ_FLOOR into
fracture_rock().  I think this is a better approach
because:
- if eliminates the pointless extract/place in
fracture_rock, followed by extract/place in
the caller in the two places causing the crash
- it covers any similar situations that we
might have missed or that someone might add
accidentally (you might not expect the location
of an object to change inside fracture_rock())
- it allows fracturing to take place on the
other object chains if we ever need it (statues
falling down stairs, perhaps?)
- it doesn't move objects from other chains onto
the floor briefly as the current code does
src/explode.c
src/zap.c