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

View File

@ -1101,8 +1101,11 @@ public class Hero extends Char {
move(step);
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 {