mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 20:11:42 +00:00
Remove a little dead code that I missed.
This commit is contained in:
parent
26f0bc4682
commit
bf20203857
1 changed files with 0 additions and 20 deletions
|
@ -8042,26 +8042,6 @@ void PR_InitExtensions(void)
|
|||
}
|
||||
}
|
||||
|
||||
static qboolean PR_IsQEX(void)
|
||||
{
|
||||
//if centerprint is mapped to #90 and no other builtins are also mapped there (eg tracebox) then assume it targets QuakeEX (Aka: KexQuake aka its part of the rerelease)
|
||||
size_t i;
|
||||
qboolean isqex=false;
|
||||
|
||||
for (i = 1; i < qcvm->progs->numfunctions; i++)
|
||||
{
|
||||
if (qcvm->functions[i].first_statement == -90)
|
||||
{
|
||||
const char *biname = PR_GetString(qcvm->functions[i].s_name);
|
||||
if (strstr(biname, "centerprint"))
|
||||
isqex = true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return isqex;
|
||||
}
|
||||
|
||||
//called at map start
|
||||
void PR_EnableExtensions(ddef_t *pr_globaldefs)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue