Fix the bug that the mouse occasionally disappears after the round ends

This commit is contained in:
sonil 2023-06-18 13:16:19 +08:00
parent 0e447c55a8
commit df2a2e3e41
1 changed files with 1 additions and 1 deletions

View File

@ -1280,7 +1280,7 @@ int gameMouseSetCursor(int cursor)
} }
unsigned int delay = 1000 / artGetFramesPerSecond(mouseCursorFrm); unsigned int delay = 1000 / artGetFramesPerSecond(mouseCursorFrm);
if (getTicksBetween(tick, gGameMouseAnimatedCursorLastUpdateTimestamp) < delay) { if (getTicksBetween(tick, gGameMouseAnimatedCursorLastUpdateTimestamp) < delay && cursor == gGameMouseCursor) {
shouldUpdate = false; shouldUpdate = false;
} else { } else {
if (artGetFrameCount(mouseCursorFrm) <= gGameMouseAnimatedCursorNextFrame) { if (artGetFrameCount(mouseCursorFrm) <= gGameMouseAnimatedCursorNextFrame) {