1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-07-01 00:48:30 +02:00

Fix red pill/mannequins/transmittor/radar dish being offset for 1 frame

Forgot to update their oldxp/oldyp when their xp/yp got updated upon
setenemyroom() being called.
This commit is contained in:
Misa 2020-05-02 13:36:35 -07:00 committed by Ethan Lee
parent 349702c92c
commit 98e033e5d0

View File

@ -223,7 +223,9 @@ void entclass::setenemyroom( int rx, int ry )
w = 16; w = 16;
h = 16; h = 16;
xp -= 24; xp -= 24;
oldxp -= 24;
yp -= 16; yp -= 16;
oldyp -= 16;
} }
else else
{ {
@ -236,7 +238,9 @@ void entclass::setenemyroom( int rx, int ry )
cx = 4; cx = 4;
size = 9; size = 9;
xp -= 4; xp -= 4;
oldxp -= 4;
yp -= 32; yp -= 32;
oldyp -= 32;
} }
break; break;
@ -337,6 +341,7 @@ void entclass::setenemyroom( int rx, int ry )
w = 32; w = 32;
h = 14; h = 14;
yp += 1; yp += 1;
oldyp += 1;
break; break;
case rn(16, 2): // (Manequins) case rn(16, 2): // (Manequins)
tile = 52; tile = 52;
@ -345,6 +350,7 @@ void entclass::setenemyroom( int rx, int ry )
w = 16; w = 16;
h = 25; h = 25;
yp -= 4; yp -= 4;
oldyp -= 4;
break; break;
case rn(18, 0): // (Obey) case rn(18, 0): // (Obey)
tile = 51; tile = 51;