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

This commit is contained in:
terminx 2008-02-07 04:38:28 +00:00
parent 30b1ce5f54
commit d7d11939a6
4 changed files with 29 additions and 15 deletions

View file

@ -214,5 +214,6 @@ extern char *gldriver;
int loadgldriver(const char *driver);
int loadglextensions(void);
int unloadgldriver(void);
int loadglulibrary(const char *driver);
int unloadglulibrary(void);

View file

@ -618,7 +618,7 @@ void editinput(void)
memset(spriteext, 0, sizeof(spriteexttype) * MAXSPRITES);
memset(spritesmooth, 0, sizeof(spritesmooth));
mhk=0;
initprintf("Maphacks dissabled\n");
initprintf("Maphacks disabled\n");
keystatus[0x44] = 0;
}
begindrawing(); //{{{

View file

@ -1418,6 +1418,19 @@ int gloadtile_cached(int fil, texcacheheader *head, int *doalloc, pthtyp *pth,in
bglCompressedTexImage2DARB(GL_TEXTURE_2D,level,pict.format,pict.xdim,pict.ydim,pict.border,
pict.size,pic);
if (bglGetError() != GL_NO_ERROR) goto failure;
{
GLint format;
bglGetTexLevelParameteriv(GL_TEXTURE_2D, level, GL_TEXTURE_INTERNAL_FORMAT, &format);
if (bglGetError() != GL_NO_ERROR) goto failure;
format = B_LITTLE32(format);
if (pict.format != format)
{
initprintf("invalid texture cache file format %d %d\n",pict.format, format);
goto failure;
}
}
}
if (midbuf) free(midbuf);

View file

@ -513,7 +513,7 @@ void SetGameVarID(int id, int lValue, int iActor, int iPlayer)
return;
}
if ((aGameVars[id].dwFlags & GAMEVAR_FLAG_PERACTOR))
if (aGameVars[id].dwFlags & GAMEVAR_FLAG_PERACTOR)
{
if (iActor < 0 || iActor > MAXSPRITES-1)
{
@ -528,7 +528,7 @@ void SetGameVarID(int id, int lValue, int iActor, int iPlayer)
if (aGameVars[id].dwFlags & GAMEVAR_FLAG_INTPTR)
{
// set the value at pointer
*((int*)aGameVars[id].lValue)=lValue;
*((int*)aGameVars[id].lValue)=(int)lValue;
return;
}