Fixed Lara burning

This commit is contained in:
Montagna Marco 2020-01-19 10:38:29 +01:00
parent ea39f91f9c
commit cc08babebd
2 changed files with 4 additions and 4 deletions

View file

@ -885,9 +885,9 @@ void TriggerFireFlame(int x, int y, int z, int fxObj, int type)
} }
else else
{ {
spark->xVel = GetRandomControl() - 128; spark->xVel = (byte)GetRandomControl() - 128;
spark->yVel = -16 - (GetRandomControl() & 0xF); spark->yVel = -16 - ((byte)GetRandomControl() & 0xF);
spark->zVel = GetRandomControl() - 128; spark->zVel = (byte)GetRandomControl() - 128;
if (type == 1) if (type == 1)
spark->friction = 51; spark->friction = 51;
else else

View file

@ -192,7 +192,7 @@ void FlameControl(short fxNumber)
fx->pos.yPos = 0; fx->pos.yPos = 0;
fx->pos.zPos = 0; fx->pos.zPos = 0;
GetLaraJointPosition((PHD_VECTOR*)& fx->pos, i); GetLaraJointPosition((PHD_VECTOR*)&fx->pos, i);
if (Lara.BurnCount) if (Lara.BurnCount)
{ {