mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 23:21:43 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@614 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
30b1ce5f54
commit
d7d11939a6
4 changed files with 29 additions and 15 deletions
|
@ -214,5 +214,6 @@ extern char *gldriver;
|
||||||
int loadgldriver(const char *driver);
|
int loadgldriver(const char *driver);
|
||||||
int loadglextensions(void);
|
int loadglextensions(void);
|
||||||
int unloadgldriver(void);
|
int unloadgldriver(void);
|
||||||
int loadglulibrary(const char *driver);
|
|
||||||
|
int loadglulibrary(const char *driver);
|
||||||
int unloadglulibrary(void);
|
int unloadglulibrary(void);
|
||||||
|
|
|
@ -518,7 +518,7 @@ void loadmhk()
|
||||||
{
|
{
|
||||||
char *p;char levname[BMAX_PATH];
|
char *p;char levname[BMAX_PATH];
|
||||||
|
|
||||||
if(!mhk)return;
|
if (!mhk)return;
|
||||||
strcpy(levname, boardfilename);
|
strcpy(levname, boardfilename);
|
||||||
p = Bstrrchr(levname,'.');
|
p = Bstrrchr(levname,'.');
|
||||||
if (!p) strcat(levname,".mhk");
|
if (!p) strcat(levname,".mhk");
|
||||||
|
@ -618,11 +618,11 @@ void editinput(void)
|
||||||
memset(spriteext, 0, sizeof(spriteexttype) * MAXSPRITES);
|
memset(spriteext, 0, sizeof(spriteexttype) * MAXSPRITES);
|
||||||
memset(spritesmooth, 0, sizeof(spritesmooth));
|
memset(spritesmooth, 0, sizeof(spritesmooth));
|
||||||
mhk=0;
|
mhk=0;
|
||||||
initprintf("Maphacks dissabled\n");
|
initprintf("Maphacks disabled\n");
|
||||||
keystatus[0x44] = 0;
|
keystatus[0x44] = 0;
|
||||||
}
|
}
|
||||||
begindrawing(); //{{{
|
begindrawing(); //{{{
|
||||||
if(mhk)printext256(0,16,whitecol,0,(mhk==1)?"Maphacks ON":"Maphacks ON (not found)",0);
|
if (mhk)printext256(0,16,whitecol,0,(mhk==1)?"Maphacks ON":"Maphacks ON (not found)",0);
|
||||||
enddrawing(); //}}}
|
enddrawing(); //}}}
|
||||||
|
|
||||||
if (angvel != 0) //ang += angvel * constant
|
if (angvel != 0) //ang += angvel * constant
|
||||||
|
|
|
@ -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,
|
bglCompressedTexImage2DARB(GL_TEXTURE_2D,level,pict.format,pict.xdim,pict.ydim,pict.border,
|
||||||
pict.size,pic);
|
pict.size,pic);
|
||||||
if (bglGetError() != GL_NO_ERROR) goto failure;
|
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);
|
if (midbuf) free(midbuf);
|
||||||
|
|
|
@ -513,7 +513,7 @@ void SetGameVarID(int id, int lValue, int iActor, int iPlayer)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((aGameVars[id].dwFlags & GAMEVAR_FLAG_PERACTOR))
|
if (aGameVars[id].dwFlags & GAMEVAR_FLAG_PERACTOR)
|
||||||
{
|
{
|
||||||
if (iActor < 0 || iActor > MAXSPRITES-1)
|
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)
|
if (aGameVars[id].dwFlags & GAMEVAR_FLAG_INTPTR)
|
||||||
{
|
{
|
||||||
// set the value at pointer
|
// set the value at pointer
|
||||||
*((int*)aGameVars[id].lValue)=lValue;
|
*((int*)aGameVars[id].lValue)=(int)lValue;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue