From bb73a151a824de3762c4a1c93ef43e38a8c4d735 Mon Sep 17 00:00:00 2001 From: sonil Date: Sun, 18 Jun 2023 13:16:19 +0800 Subject: [PATCH] Fix the bug that the mouse occasionally disappears after the round ends --- src/game_mouse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_mouse.cc b/src/game_mouse.cc index 9f82fcd..5056c58 100644 --- a/src/game_mouse.cc +++ b/src/game_mouse.cc @@ -1280,7 +1280,7 @@ int gameMouseSetCursor(int cursor) } unsigned int delay = 1000 / artGetFramesPerSecond(mouseCursorFrm); - if (getTicksBetween(tick, gGameMouseAnimatedCursorLastUpdateTimestamp) < delay) { + if (getTicksBetween(tick, gGameMouseAnimatedCursorLastUpdateTimestamp) < delay && cursor == gGameMouseCursor) { shouldUpdate = false; } else { if (artGetFrameCount(mouseCursorFrm) <= gGameMouseAnimatedCursorNextFrame) {