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:
parent
302c83ddb3
commit
d36eac6baf
1 changed files with 6 additions and 2 deletions
|
@ -3497,7 +3497,11 @@ void PF_walkmove (progfuncs_t *prinst, struct globalvars_s *pr_globals)
|
||||||
// oldf = pr_xfunction;
|
// oldf = pr_xfunction;
|
||||||
oldself = pr_global_struct->self;
|
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);
|
G_FLOAT(OFS_RETURN) = SV_movestep(ent, move, true, false, settrace);
|
||||||
if (SV_TestEntityPosition(ent))
|
if (SV_TestEntityPosition(ent))
|
||||||
|
|
Loading…
Reference in a new issue