v0.5.0: fixed game crashes involving pitfall traps

This commit is contained in:
Evan Debenham
2017-01-29 00:01:32 -05:00
parent dc4f3ebfea
commit 9dd910de02
@@ -1102,7 +1102,10 @@ public class Hero extends Char {
spend( moveTime / speed() ); spend( moveTime / speed() );
return true; //FIXME this is a fairly sloppy fix for a crash involving pitfall traps.
//really there should be a way for traps to specify whether action should continue or
//not when they are pressed.
return InterlevelScene.mode != InterlevelScene.Mode.FALL;
} else { } else {