mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
MOVETYPE_NONE is being set by some very naughty mods.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@349 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0bb2a0854d
commit
fdad8d48af
1 changed files with 6 additions and 1 deletions
|
@ -49,6 +49,7 @@ cvar_t sv_cmdlikercon = {"sv_cmdlikercon", "0"};
|
|||
cvar_t sv_nomsec = {"sv_nomsec", "0"};
|
||||
cvar_t sv_edgefriction = {"sv_edgefriction", "2"};
|
||||
|
||||
cvar_t sv_brokenmovetypes = {"sv_brokenmovetypes", "0"};
|
||||
|
||||
cvar_t sv_chatfilter = {"sv_chatfilter", "0"};
|
||||
|
||||
|
@ -3393,7 +3394,11 @@ int SV_PMTypeForClient (client_t *cl)
|
|||
return PM_FLY;
|
||||
|
||||
if (cl->edict->v.movetype == MOVETYPE_NONE)
|
||||
{
|
||||
if (sv_brokenmovetypes.value)
|
||||
return PM_NORMAL;
|
||||
return PM_NONE;
|
||||
}
|
||||
|
||||
if (cl->edict->v.health <= 0)
|
||||
return PM_DEAD;
|
||||
|
@ -4317,7 +4322,7 @@ void SV_UserInit (void)
|
|||
Cvar_Register (&votepercent, sv_votinggroup);
|
||||
Cvar_Register (&votetime, sv_votinggroup);
|
||||
|
||||
|
||||
Cvar_Register (&sv_brokenmovetypes, "");
|
||||
|
||||
Cvar_Register (&sv_edgefriction, "netquake compatability");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue