From 9617861b8a6283fcf14f15637c8ce4cab20e0e88 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 18 Feb 2013 16:07:36 +0000 Subject: [PATCH] CON digitalnumber*: move orientation &= (ROTATESPRITE_MAX-1) to G_DrawTXDigiNumZ git-svn-id: https://svn.eduke32.com/eduke32@3499 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 5 ++--- polymer/eduke32/source/gameexec.c | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 7ed1f5952..7a910297f 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -352,7 +352,7 @@ int32_t G_PrintGameText(int32_t f, int32_t tile, int32_t x, int32_t y, const t++; if (isdigit(*(t+1))) 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; } @@ -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; 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); for (k=i-1; k>=0; k--) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index a9eef27b7..b1c75673e 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -2672,8 +2672,6 @@ nullquote: continue; } - orientation &= (ROTATESPRITE_MAX-1); - G_DrawTXDigiNumZ(tilenum,x,y,q,shade,pal,orientation,x1,y1,x2,y2,z); continue; }