walkmove(0,0) is a solidity test. Test properly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@709 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-04 07:58:19 +00:00
parent 302c83ddb3
commit d36eac6baf

View file

@ -3497,7 +3497,11 @@ void PF_walkmove (progfuncs_t *prinst, struct globalvars_s *pr_globals)
// oldf = pr_xfunction;
oldself = pr_global_struct->self;
if (!SV_TestEntityPosition(ent))
if (!dist)
{
G_FLOAT(OFS_RETURN) = !SV_TestEntityPosition(ent);
}
else if (!SV_TestEntityPosition(ent))
{
G_FLOAT(OFS_RETURN) = SV_movestep(ent, move, true, false, settrace);
if (SV_TestEntityPosition(ent))