v0.5.0: fixed game crashes involving pitfall traps
This commit is contained in:
parent
dc4f3ebfea
commit
9dd910de02
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user