1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

fixed a bug when moving animation with m.s == m.t

This commit is contained in:
Zeno Rogue 2020-12-25 06:08:19 +01:00
parent 2a0ef4f30b
commit 68ab6fedc6

View File

@ -5366,7 +5366,8 @@ EX void animateMovement(const movei& m, int layer) {
if(found_s) {
a = animations[layer][m.s];
a.wherenow = T * a.wherenow;
animations[layer].erase(m.s);
if(m.s != m.t)
animations[layer].erase(m.s);
a.attacking = 0;
}
else {