fix hoisting up when holding O and SLOW (closes #28)

This commit is contained in:
rr- 2021-02-27 18:55:05 +01:00
parent 622f61b64c
commit a70b66740f

View file

@ -177,7 +177,8 @@ void LaraControl(int16_t item_num)
item->hit_points = LARA_HITPOINTS;
Lara.death_count = 0;
LaraUnderWater(item, &coll);
if ((Input & IN_SLOW) && !(Input & IN_LOOK)) {
if (CHK_ANY(Input, IN_SLOW)
&& !CHK_ANY(Input, IN_LOOK | IN_DOZYCHEAT)) {
int16_t wh = GetWaterHeight(
item->pos.x, item->pos.y, item->pos.z, item->room_number);
if (room_submerged || (wh != NO_HEIGHT && wh > 0)) {