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