git-svn-id: https://svn.eduke32.com/eduke32@924 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-07-30 06:49:44 +00:00
parent 7630254c56
commit 2b13bec0ab

View file

@ -283,7 +283,7 @@ int gametext_z(int small, int starttile, int x,int y,const char *t,int s,int p,i
{ {
int ac,newx,oldx=x; int ac,newx,oldx=x;
char centre, *oldt; char centre, *oldt;
int squishtext = (small&2); int squishtext = ((small&2)!=0);
int ht = usehightile; int ht = usehightile;
centre = (x == (320>>1)); centre = (x == (320>>1));
@ -370,12 +370,10 @@ int gametext_z(int small, int starttile, int x,int y,const char *t,int s,int p,i
if ((*t >= '0' && *t <= '9')) if ((*t >= '0' && *t <= '9'))
x += (8)*z/65536; x += (8)*z/65536;
else else if (small&8)
{ x += (8-squishtext)*z/65536;//(tilesizx[ac]>>small);
if (small&8) else x += (tilesizx[ac]-squishtext)*z/65536;//(tilesizx[ac]>>small);
x += (8-squishtext)*z/65536;//(tilesizx[ac]>>small);
else x += (tilesizx[ac]-squishtext)*z/65536;//(tilesizx[ac]>>small);
}
if (x > (ud.config.ScreenWidth - 14)) oldt = (char *)t, x = oldx, y+=8*z/65536; if (x > (ud.config.ScreenWidth - 14)) oldt = (char *)t, x = oldx, y+=8*z/65536;
t++; t++;
} }