mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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
|
@ -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
|
// save program state, because SV_movestep may call other progs
|
||||||
// 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