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

This commit is contained in:
terminx 2008-08-24 04:35:35 +00:00
parent f5a587e7c1
commit 7082436267
6 changed files with 39 additions and 26 deletions

View file

@ -45,11 +45,11 @@ extern unsigned char somethingintab;
extern unsigned char buildkeys[NUMBUILDKEYS]; extern unsigned char buildkeys[NUMBUILDKEYS];
extern int ydim16, xdimgame, ydimgame, bppgame, xdim2d, ydim2d, forcesetup; extern int ydim16, xdimgame, ydimgame, bppgame, xdim2d, ydim2d, forcesetup;
extern char unrealedlook, quickmapcycling; extern int unrealedlook, quickmapcycling;
extern int pk_turnaccel,pk_turndecel,pk_uedaccel; extern int pk_turnaccel,pk_turndecel,pk_uedaccel;
extern int revertCTRL,scrollamount; extern int revertCTRL,scrollamount;
extern int autosave; extern int autosave;
extern int mlook;
extern int ExtInit(void); extern int ExtInit(void);
extern int ExtPreInit(int argc,const char **argv); extern int ExtPreInit(int argc,const char **argv);

View file

@ -127,9 +127,9 @@ unsigned char temppal, tempvis, tempxrepeat, tempyrepeat;
signed char tempshade; signed char tempshade;
unsigned char somethingintab = 255; unsigned char somethingintab = 255;
char mlook = 0,mskip=0; int mlook = 0,mskip=0;
int revertCTRL=0,scrollamount=3; int revertCTRL=0,scrollamount=3;
char unrealedlook=0, quickmapcycling=0; //PK int unrealedlook=1, quickmapcycling=1; //PK
static char boardfilename[BMAX_PATH], selectedboardfilename[BMAX_PATH]; static char boardfilename[BMAX_PATH], selectedboardfilename[BMAX_PATH];

View file

@ -2857,8 +2857,6 @@ static int DrawTiles(int iTopLeft, int iSelected, int nXTiles, int nYTiles, int
} }
extern char unrealedlook; //PK
int spriteonceilingz(int searchwall) int spriteonceilingz(int searchwall)
{ {
int z=sprite[searchwall].z; int z=sprite[searchwall].z;
@ -6887,9 +6885,6 @@ static int osdcmd_noclip(const osdfuncparm_t *parm)
} }
//PK vvv ------------ //PK vvv ------------
extern int pk_turnaccel, pk_turndecel, pk_uedaccel;
extern char quickmapcycling;
static int osdcmd_vars_pk(const osdfuncparm_t *parm) static int osdcmd_vars_pk(const osdfuncparm_t *parm)
{ {
int showval = (parm->numparms < 1); int showval = (parm->numparms < 1);

View file

@ -141,7 +141,6 @@ extern int numsprites;
extern int showfirstwall; extern int showfirstwall;
extern char spritecol2d[MAXTILES][2]; extern char spritecol2d[MAXTILES][2];
extern char custom2dcolors; extern char custom2dcolors;
extern char mlook;
int intro=0; int intro=0;
extern int ydim16, halfxdim16, midydim16, zoom; extern int ydim16, halfxdim16, midydim16, zoom;

View file

@ -26,28 +26,48 @@ void GAME_drawosdstr(int x, int y, char *ch, int len, int shade, int pal)
int ht = usehightile; int ht = usehightile;
usehightile = (osdhightile && ht); usehightile = (osdhightile && ht);
x = (x<<3)+x;
for (x = (x<<3)+x; len>0; len--, ch++, x++) if (ch > ptr && ch < (ptr + TEXTSIZE))
{
do
{
if (*ch == 32)
{
x += OSDCHAR_WIDTH+1;
ch++;
continue;
}
ac = *ch-'!'+STARTALPHANUM;
if (ac < STARTALPHANUM || ac > ENDALPHANUM) { usehightile = ht; return; }
// use the format byte if the text falls within the bounds of the console buffer
rotatesprite(x<<16, (y<<3)<<16, 65536, 0, ac, (*(ch-ptr+fmt)&~0x1F)>>4,
*(ch-ptr+fmt)&~0xE0, 8|16, 0, 0, xdim-1, ydim-1);
x += OSDCHAR_WIDTH+1;
ch++;
} while (--len);
usehightile = ht;
return;
}
do
{ {
if (*ch == 32) if (*ch == 32)
{ {
x += OSDCHAR_WIDTH; x += OSDCHAR_WIDTH+1;
ch++;
continue; continue;
} }
ac = *ch-'!'+STARTALPHANUM; ac = *ch-'!'+STARTALPHANUM;
if (ac < STARTALPHANUM || ac > ENDALPHANUM) { usehightile = ht; return; } if (ac < STARTALPHANUM || ac > ENDALPHANUM) { usehightile = ht; return; }
// use the format byte if the text falls within the bounds of the console buffer rotatesprite(x<<16, (y<<3)<<16, 65536, 0, ac, shade, pal, 8|16, 0, 0, xdim-1, ydim-1);
if (ch > ptr && ch < (ptr + TEXTSIZE)) x += OSDCHAR_WIDTH+1;
{ ch++;
rotatesprite(x<<16, (y<<3)<<16, 65536, 0, ac, (*(ch-ptr+fmt)&~0x1F)>>4, } while (--len);
*(ch-ptr+fmt)&~0xE0, 8|16, 0, 0, xdim-1, ydim-1);
}
else
rotatesprite(x<<16, (y<<3)<<16, 65536, 0, ac, shade,
pal, 8|16, 0, 0, xdim-1, ydim-1);
x += OSDCHAR_WIDTH;
}
usehightile = ht; usehightile = ht;
} }

View file

@ -392,7 +392,6 @@ void animatecamsprite(void)
if (g_player[screenpeek].ps->newowner >= 0) if (g_player[screenpeek].ps->newowner >= 0)
OW = g_player[screenpeek].ps->newowner; OW = g_player[screenpeek].ps->newowner;
else if (OW >= 0 && dist(&sprite[g_player[screenpeek].ps->i],&sprite[i]) < 2048) else if (OW >= 0 && dist(&sprite[g_player[screenpeek].ps->i],&sprite[i]) < 2048)
{ {
if (waloff[TILE_VIEWSCR] == 0) if (waloff[TILE_VIEWSCR] == 0)
@ -406,9 +405,9 @@ void animatecamsprite(void)
void animatewalls(void) void animatewalls(void)
{ {
int i, j, p = 0, t; int i, j, p = numanimwalls-1, t;
for (;p < numanimwalls ;p++) for (;p>=0;p--)
// for(p=numanimwalls-1;p>=0;p--) // for(p=numanimwalls-1;p>=0;p--)
{ {
i = animwall[p].wallnum; i = animwall[p].wallnum;