mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 19:22:48 +00:00
fixed a bug when moving animation with m.s == m.t
This commit is contained in:
parent
2a0ef4f30b
commit
68ab6fedc6
@ -5366,6 +5366,7 @@ EX void animateMovement(const movei& m, int layer) {
|
|||||||
if(found_s) {
|
if(found_s) {
|
||||||
a = animations[layer][m.s];
|
a = animations[layer][m.s];
|
||||||
a.wherenow = T * a.wherenow;
|
a.wherenow = T * a.wherenow;
|
||||||
|
if(m.s != m.t)
|
||||||
animations[layer].erase(m.s);
|
animations[layer].erase(m.s);
|
||||||
a.attacking = 0;
|
a.attacking = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user