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
1 changed files with 6 additions and 2 deletions

View File

@ -3496,8 +3496,12 @@ void PF_walkmove (progfuncs_t *prinst, struct globalvars_s *pr_globals)
// save program state, because SV_movestep may call other progs
// 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))