1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

fixed a bug with animateReplacement in crystal

This commit is contained in:
Zeno Rogue 2019-04-12 00:11:58 +02:00
parent 53c7e2869f
commit c1373e64f7

View File

@ -6712,7 +6712,7 @@ void commitAnimations(int layer) {
void animateReplacement(cell *a, cell *b, int layer, int direction_hinta, int direction_hintb) { void animateReplacement(cell *a, cell *b, int layer, int direction_hinta, int direction_hintb) {
if(vid.mspeed >= 5) return; // no animations! if(vid.mspeed >= 5) return; // no animations!
static cell c1; static cell c1;
gmatrix[&c1] = gmatrix[b]; gmatrix[&c1] = gmatrix[b]; c1.master = b->master;
if(animations[layer].count(b)) animations[layer][&c1] = animations[layer][b]; if(animations[layer].count(b)) animations[layer][&c1] = animations[layer][b];
animateMovement(a, b, layer, direction_hinta); animateMovement(a, b, layer, direction_hinta);
animateMovement(&c1, a, layer, direction_hintb); animateMovement(&c1, a, layer, direction_hintb);