From 8b73101f42c88479dfad6a3efbaf77a74559287b Mon Sep 17 00:00:00 2001 From: fgenesis Date: Sun, 12 May 2024 18:03:38 +0200 Subject: [PATCH] small visual fix for particle collision on the water line The water line is no longer offset by some pixels but goes exactly where Game::waterLevel.x says it should. This compensates the change in b8dee723a2d42d9a02eff9 to look as it used to. --- Aquaria/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/Game.cpp b/Aquaria/Game.cpp index 0c530d4..caee30b 100644 --- a/Aquaria/Game.cpp +++ b/Aquaria/Game.cpp @@ -2354,7 +2354,7 @@ void Game::updateParticlePause() int game_collideParticle(Vector pos) { - bool aboveWaterLine = (pos.y <= game->waterLevel.x+20); + bool aboveWaterLine = (pos.y <= game->waterLevel.x+10); bool inWaterBubble = false; if (!aboveWaterLine) {