mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
fixed a bug with animateReplacement in crystal
This commit is contained in:
parent
53c7e2869f
commit
c1373e64f7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user