mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 19:11:06 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1030 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
127bc3fe91
commit
af0ad5fb0a
2 changed files with 16 additions and 21 deletions
|
@ -1077,7 +1077,7 @@ static int increasescriptsize(int size)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_ScriptSize = size;
|
g_ScriptSize = size;
|
||||||
initprintf("Increasing bytecode buffer to %d*%d bytes...\n",g_ScriptSize, sizeof(intptr_t));
|
initprintf("Increasing bytecode buffer size to %d*%d bytes...\n",g_ScriptSize, sizeof(intptr_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
newscript = (intptr_t *)Brealloc(script, g_ScriptSize * sizeof(intptr_t));
|
newscript = (intptr_t *)Brealloc(script, g_ScriptSize * sizeof(intptr_t));
|
||||||
|
|
|
@ -596,16 +596,14 @@ static int osdcmd_setvar(const osdfuncparm_t *parm)
|
||||||
|
|
||||||
strcpy(varname,parm->parms[1]);
|
strcpy(varname,parm->parms[1]);
|
||||||
varval = Batol(varname);
|
varval = Batol(varname);
|
||||||
for (i=0;i<iGameVarCount;i++)
|
i = HASH_find(&gamevarH,varname);
|
||||||
if (aGameVars[i].szLabel != NULL)
|
if (i >= 0)
|
||||||
if (Bstrcmp(varname, aGameVars[i].szLabel) == 0)
|
varval=GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex);
|
||||||
varval=GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex);
|
|
||||||
|
|
||||||
strcpy(varname,parm->parms[0]);
|
strcpy(varname,parm->parms[0]);
|
||||||
for (i=0;i<iGameVarCount;i++)
|
i = HASH_find(&gamevarH,varname);
|
||||||
if (aGameVars[i].szLabel != NULL)
|
if (i >= 0)
|
||||||
if (Bstrcmp(varname, aGameVars[i].szLabel) == 0)
|
SetGameVarID(i, varval, g_player[myconnectindex].ps->i, myconnectindex);
|
||||||
SetGameVarID(i, varval, g_player[myconnectindex].ps->i, myconnectindex);
|
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -623,10 +621,9 @@ static int osdcmd_addlogvar(const osdfuncparm_t *parm)
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(varname,parm->parms[0]);
|
strcpy(varname,parm->parms[0]);
|
||||||
for (i=0;i<iGameVarCount;i++)
|
i = HASH_find(&gamevarH,varname);
|
||||||
if (aGameVars[i].szLabel != NULL)
|
if (i >= 0)
|
||||||
if (Bstrcmp(varname, aGameVars[i].szLabel) == 0)
|
OSD_Printf("%s = %d\n", varname, GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex));
|
||||||
OSD_Printf("%s = %d\n", varname, GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex));
|
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -653,16 +650,14 @@ static int osdcmd_setactorvar(const osdfuncparm_t *parm)
|
||||||
varval = Batol(parm->parms[2]);
|
varval = Batol(parm->parms[2]);
|
||||||
strcpy(varname,parm->parms[2]);
|
strcpy(varname,parm->parms[2]);
|
||||||
varval = Batol(varname);
|
varval = Batol(varname);
|
||||||
for (i=0;i<iGameVarCount;i++)
|
i = HASH_find(&gamevarH,varname);
|
||||||
if (aGameVars[i].szLabel != NULL)
|
if (i >= 0)
|
||||||
if (Bstrcmp(varname, aGameVars[i].szLabel) == 0)
|
varval=GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex);
|
||||||
varval=GetGameVarID(i, g_player[myconnectindex].ps->i, myconnectindex);
|
|
||||||
|
|
||||||
strcpy(varname,parm->parms[1]);
|
strcpy(varname,parm->parms[1]);
|
||||||
for (i=0;i<iGameVarCount;i++)
|
i = HASH_find(&gamevarH,varname);
|
||||||
if (aGameVars[i].szLabel != NULL)
|
if (i >= 0)
|
||||||
if (Bstrcmp(varname, aGameVars[i].szLabel) == 0)
|
SetGameVarID(i, varval, ID, -1);
|
||||||
SetGameVarID(i, varval, ID, -1);
|
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue