mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
fix bubbles above water surface
This commit is contained in:
@@ -1531,7 +1531,10 @@ struct Bubble : Sprite {
|
|||||||
h = s.ceiling * 256;
|
h = s.ceiling * 256;
|
||||||
room = s.roomAbove;
|
room = s.roomAbove;
|
||||||
}
|
}
|
||||||
time -= (pos.y - h) / speed - (1.0f / SPRITE_FPS);
|
if (pos.y < h)
|
||||||
|
time = 1.0f / SPRITE_FPS;
|
||||||
|
else
|
||||||
|
time -= (pos.y - h) / speed - (1.0f / SPRITE_FPS);
|
||||||
activate();
|
activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user