Fix cold exposure status not recovering in non-cold wade-depth water

This commit is contained in:
Sezz 2023-11-01 15:17:51 +11:00
parent 1262483a1b
commit b1f5cb9fda
2 changed files with 7 additions and 0 deletions

View file

@ -17,6 +17,7 @@ Version 1.2
* Fix savegame count not properly increasing.
* Fix regeneration of non-ammo pickups with OCB 128.
* Fix vault bug preventing the player from climbing onto ledges out of deeper sections of wade-depth water.
* Fix cold exposure status not recovering in non-cold wade-depth water.
* Improve head-on wall collision.
* Overhaul pushables:
- Separate climbable and non-climbable pushable object slots.

View file

@ -797,6 +797,12 @@ void LaraControl(ItemInfo* item, CollisionInfo* coll)
item->HitPoints -= 10;
}
}
else
{
lara->Status.Exposure++;
if (lara->Status.Exposure >= LARA_EXPOSURE_MAX)
lara->Status.Exposure = LARA_EXPOSURE_MAX;
}
}
}