mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- use unsigned variables for Duke's spinning selector.
The formula depends on unsigned modulo.
This commit is contained in:
parent
cc7290e313
commit
968fe10de7
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ class DukeMenuDelegate : RazeMenuDelegate
|
|||
|
||||
void DrawCursor(double x, double y, double scale, bool right)
|
||||
{
|
||||
int mclock = MSTime() * 120 / 1000;
|
||||
int frames = (gameinfo.gametype & GAMEFLAG_RR) ? 16 : 7;
|
||||
uint mclock = MSTime() * 120 / 1000;
|
||||
uint frames = (gameinfo.gametype & GAMEFLAG_RR) ? 16 : 7;
|
||||
String picname;
|
||||
if (!right) picname= String.Format("SPINNINGNUKEICON%d", ((mclock >> 3) % frames));
|
||||
else picname = String.Format("SPINNINGNUKEICON%d", frames - 1 - ((frames - 1 + (mclock >> 3)) % frames));
|
||||
|
|
Loading…
Reference in a new issue