From df2a2e3e41b24068b31392b624efbd126b70532f 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 193ee4f..821d394 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) {