mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- a few more places where gameclock could be substituted.
Nothing here needs higher precision.
This commit is contained in:
parent
2bf368d49b
commit
bf4f538c61
1 changed files with 4 additions and 4 deletions
|
@ -620,7 +620,7 @@ void drawoverheadmap(int cposx, int cposy, int czoom, int cang)
|
|||
{
|
||||
auto& pp = ps[p];
|
||||
if (sprite[pp.i].xvel > 16 && pp.on_ground)
|
||||
i = TILE_APLAYERTOP + ((gameclock >> 4) & 3);
|
||||
i = TILE_APLAYERTOP + ((ud.levelclock >> 4) & 3);
|
||||
else
|
||||
i = TILE_APLAYERTOP;
|
||||
|
||||
|
@ -656,16 +656,16 @@ void cameratext(int i)
|
|||
drawitem(TILE_CAMCORNER + 1, 24, 163, true, true);
|
||||
drawitem(TILE_CAMCORNER + 1, 320 - 26, 163, false, true);
|
||||
|
||||
if (gameclock & 16)
|
||||
if (ud.levelclock & 16)
|
||||
drawitem(TILE_CAMLIGHT, 46, 32, false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
int flipbits = (gameclock << 1) & 48;
|
||||
int flipbits = (ud.levelclock << 1) & 48;
|
||||
|
||||
for (int x = -64; x < 394; x += 64)
|
||||
for (int y = 0; y < 200; y += 64)
|
||||
drawitem(TILE_STATIC, x, y, !!(gameclock & 8), !!(gameclock & 16));
|
||||
drawitem(TILE_STATIC, x, y, !!(ud.levelclock & 8), !!(ud.levelclock & 16));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue