mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
CON digitalnumber*: move orientation &= (ROTATESPRITE_MAX-1) to G_DrawTXDigiNumZ
git-svn-id: https://svn.eduke32.com/eduke32@3499 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2d61216758
commit
9617861b8a
2 changed files with 2 additions and 5 deletions
|
@ -352,7 +352,7 @@ int32_t G_PrintGameText(int32_t f, int32_t tile, int32_t x, int32_t y, const
|
||||||
t++;
|
t++;
|
||||||
if (isdigit(*(t+1)))
|
if (isdigit(*(t+1)))
|
||||||
t++;
|
t++;
|
||||||
// t += 1 + isdigit(*(t+2)); // This code is wrong, see C99 6.5.16 #3
|
// t += 1 + isdigit(*(t+2)); // This code is wrong, see C99 6.5 #2
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -988,9 +988,8 @@ void G_DrawTXDigiNumZ(int32_t starttile, int32_t x,int32_t y,int32_t n,int32_t s
|
||||||
{
|
{
|
||||||
int32_t i, j = 0, k, p, c;
|
int32_t i, j = 0, k, p, c;
|
||||||
char b[12];
|
char b[12];
|
||||||
int32_t shift = (cs&ROTATESPRITE_MAX)?0:16;
|
const int32_t shift = 16;
|
||||||
|
|
||||||
//ltoa(n,b,10);
|
|
||||||
i = Bsprintf(b,"%d",n);
|
i = Bsprintf(b,"%d",n);
|
||||||
|
|
||||||
for (k=i-1; k>=0; k--)
|
for (k=i-1; k>=0; k--)
|
||||||
|
|
|
@ -2672,8 +2672,6 @@ nullquote:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
orientation &= (ROTATESPRITE_MAX-1);
|
|
||||||
|
|
||||||
G_DrawTXDigiNumZ(tilenum,x,y,q,shade,pal,orientation,x1,y1,x2,y2,z);
|
G_DrawTXDigiNumZ(tilenum,x,y,q,shade,pal,orientation,x1,y1,x2,y2,z);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue