mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-10 15:14:28 +02:00
fix bubbles above water surface
This commit is contained in:
@@ -1531,7 +1531,10 @@ struct Bubble : Sprite {
|
||||
h = s.ceiling * 256;
|
||||
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user