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

This commit is contained in:
terminx 2007-03-07 20:18:48 +00:00
parent 67efe33c18
commit 070c38a85e
3 changed files with 4 additions and 6 deletions

View file

@ -836,7 +836,7 @@ static long mdloadskin (md2model *m, int number, int pal, int surf)
return(*texidx);
}
char mdpause;
int mdpause;
//Note: even though it says md2model, it works for both md2model&md3model
static void updateanimation (md2model *m, spritetype *tspr)

View file

@ -412,6 +412,8 @@ pthtyp * gltexcache (long dapicnum, long dapalnum, long dameth)
{
memcpy(pth, pth2, sizeof(pthtyp));
pth->picnum = dapicnum;
pth->flags = ((dameth&4)>>2) + 2 + ((drawingskybox>0)<<2);
if (pth2->flags & 8) pth->flags |= 8; //hasalpha
pth->hicr = si;
pth->next = gltexcachead[j];
gltexcachead[j] = pth;
@ -1710,8 +1712,6 @@ void drawpoly (double *dpx, double *dpy, long n, long method)
bglMatrixMode(GL_MODELVIEW);
}
else
detailpth = NULL;
// glow texture
glowpth = NULL;
@ -1745,8 +1745,6 @@ void drawpoly (double *dpx, double *dpy, long n, long method)
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
}
else
glowpth = NULL;
if (pth && (pth->flags & 2))
{

View file

@ -3458,7 +3458,7 @@ void displayrest(long smoothratio)
#if defined(POLYMOST) && defined(USE_OPENGL)
{
extern char mdpause;
extern int mdpause;
mdpause = 0;
if (ud.pause_on || (ps[myconnectindex].gm&MODE_MENU && numplayers < 2))