1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-16 10:04:28 +02:00

#3 fix STATE_REACH bug

This commit is contained in:
XProger
2018-05-13 23:13:10 +03:00
parent 02510db20a
commit f2e2b2aab7

View File

@@ -2149,7 +2149,7 @@ struct Lara : Character {
float ceiling = c.info[Collision::FRONT].ceiling;
float hands = bounds.min.y;
if (fabsf(floor - hands) < 64 && floor != ceiling) {
if (fabsf(floor - hands) < 64 && int(floor) != int(ceiling)) {
alignToWall(-LARA_RADIUS);
pos.y = float(floor + LARA_HANG_OFFSET);
stand = STAND_HANG;