mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +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 loadglextensions(void);
|
||||
int unloadgldriver(void);
|
||||
int loadglulibrary(const char *driver);
|
||||
|
||||
int loadglulibrary(const char *driver);
|
||||
int unloadglulibrary(void);
|
||||
|
|
|
@ -518,7 +518,7 @@ void loadmhk()
|
|||
{
|
||||
char *p;char levname[BMAX_PATH];
|
||||
|
||||
if(!mhk)return;
|
||||
if (!mhk)return;
|
||||
strcpy(levname, boardfilename);
|
||||
p = Bstrrchr(levname,'.');
|
||||
if (!p) strcat(levname,".mhk");
|
||||
|
@ -618,11 +618,11 @@ 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(); //{{{
|
||||
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(); //}}}
|
||||
|
||||
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,
|
||||
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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue