mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
fixed a bug when moving animation with m.s == m.t
This commit is contained in:
parent
2a0ef4f30b
commit
68ab6fedc6
@ -5366,7 +5366,8 @@ 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;
|
||||||
animations[layer].erase(m.s);
|
if(m.s != m.t)
|
||||||
|
animations[layer].erase(m.s);
|
||||||
a.attacking = 0;
|
a.attacking = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user