1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2004-10-18 10:48:33 +00:00
parent 0bb2a0854d
commit fdad8d48af

View file

@ -49,6 +49,7 @@ cvar_t sv_cmdlikercon = {"sv_cmdlikercon", "0"};
cvar_t sv_nomsec = {"sv_nomsec", "0"}; cvar_t sv_nomsec = {"sv_nomsec", "0"};
cvar_t sv_edgefriction = {"sv_edgefriction", "2"}; cvar_t sv_edgefriction = {"sv_edgefriction", "2"};
cvar_t sv_brokenmovetypes = {"sv_brokenmovetypes", "0"};
cvar_t sv_chatfilter = {"sv_chatfilter", "0"}; cvar_t sv_chatfilter = {"sv_chatfilter", "0"};
@ -3393,7 +3394,11 @@ int SV_PMTypeForClient (client_t *cl)
return PM_FLY; return PM_FLY;
if (cl->edict->v.movetype == MOVETYPE_NONE) if (cl->edict->v.movetype == MOVETYPE_NONE)
{
if (sv_brokenmovetypes.value)
return PM_NORMAL;
return PM_NONE; return PM_NONE;
}
if (cl->edict->v.health <= 0) if (cl->edict->v.health <= 0)
return PM_DEAD; return PM_DEAD;
@ -4317,7 +4322,7 @@ void SV_UserInit (void)
Cvar_Register (&votepercent, sv_votinggroup); Cvar_Register (&votepercent, sv_votinggroup);
Cvar_Register (&votetime, sv_votinggroup); Cvar_Register (&votetime, sv_votinggroup);
Cvar_Register (&sv_brokenmovetypes, "");
Cvar_Register (&sv_edgefriction, "netquake compatability"); Cvar_Register (&sv_edgefriction, "netquake compatability");
} }