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

Fix lerpoldxp/yp not being updated in setenemy and setenemyroom

I forgot to fix these when I was doing #504.
This commit is contained in:
Misa 2020-10-31 21:54:21 -07:00 committed by Ethan Lee
parent f95dbd8426
commit 3a8b381dbc

View File

@ -106,7 +106,7 @@ void entclass::setenemy( int t )
break; break;
case 1: case 1:
yp += 10; yp += 10;
oldyp += 10; lerpoldyp += 10;
tile = 63; tile = 63;
animate = 100; //LIES animate = 100; //LIES
colour = 6; colour = 6;
@ -146,9 +146,9 @@ void entclass::setenemy( int t )
break; break;
case 1: case 1:
xp += 4; xp += 4;
oldxp += 4; lerpoldxp += 4;
yp -= 4; yp -= 4;
oldyp -= 4; lerpoldyp -= 4;
tile = 76; tile = 76;
animate = 100; // Clouds animate = 100; // Clouds
colour = 6; colour = 6;
@ -226,9 +226,9 @@ void entclass::setenemyroom( int rx, int ry )
w = 16; w = 16;
h = 16; h = 16;
xp -= 24; xp -= 24;
oldxp -= 24; lerpoldxp -= 24;
yp -= 16; yp -= 16;
oldyp -= 16; lerpoldyp -= 16;
} }
else else
{ {
@ -241,9 +241,9 @@ void entclass::setenemyroom( int rx, int ry )
cx = 4; cx = 4;
size = 9; size = 9;
xp -= 4; xp -= 4;
oldxp -= 4; lerpoldxp -= 4;
yp -= 32; yp -= 32;
oldyp -= 32; lerpoldyp -= 32;
} }
break; break;
@ -344,7 +344,7 @@ void entclass::setenemyroom( int rx, int ry )
w = 32; w = 32;
h = 14; h = 14;
yp += 1; yp += 1;
oldyp += 1; lerpoldyp += 1;
break; break;
case rn(16, 2): // (Manequins) case rn(16, 2): // (Manequins)
tile = 52; tile = 52;
@ -353,7 +353,7 @@ void entclass::setenemyroom( int rx, int ry )
w = 16; w = 16;
h = 25; h = 25;
yp -= 4; yp -= 4;
oldyp -= 4; lerpoldyp -= 4;
break; break;
case rn(18, 0): // (Obey) case rn(18, 0): // (Obey)
tile = 51; tile = 51;