Fix the bug that the mouse occasionally disappears after the round ends
This commit is contained in:
parent
0e447c55a8
commit
df2a2e3e41
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue