v0.3.1: fixed a bug where the hero would keep running after death.
This commit is contained in:
parent
0e49bb154b
commit
7097f6f54e
|
@ -1008,9 +1008,8 @@ public class Hero extends Char {
|
||||||
|
|
||||||
if (step != -1) {
|
if (step != -1) {
|
||||||
|
|
||||||
int oldPos = pos;
|
sprite.move(pos, step);
|
||||||
move(step);
|
move(step);
|
||||||
sprite.move(oldPos, pos);
|
|
||||||
spend( 1 / speed() );
|
spend( 1 / speed() );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user