- made AActor::velx/y/z and player_t::velx/y fixedvec's.
(This commit is 95% search & replace with only a few places where velz was used as a local variable changed.)
This commit is contained in:
parent
4116719a5a
commit
651817fad7
81 changed files with 869 additions and 870 deletions
|
|
@ -1334,11 +1334,11 @@ void FParser::SF_MobjMomx(void)
|
|||
if(t_argc > 1)
|
||||
{
|
||||
if(mo)
|
||||
mo->velx = fixedvalue(t_argv[1]);
|
||||
mo->vel.x = fixedvalue(t_argv[1]);
|
||||
}
|
||||
|
||||
t_return.type = svt_fixed;
|
||||
t_return.value.f = mo ? mo->velx : 0;
|
||||
t_return.value.f = mo ? mo->vel.x : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1358,11 +1358,11 @@ void FParser::SF_MobjMomy(void)
|
|||
if(t_argc > 1)
|
||||
{
|
||||
if(mo)
|
||||
mo->vely = fixedvalue(t_argv[1]);
|
||||
mo->vel.y = fixedvalue(t_argv[1]);
|
||||
}
|
||||
|
||||
t_return.type = svt_fixed;
|
||||
t_return.value.f = mo ? mo->vely : 0;
|
||||
t_return.value.f = mo ? mo->vel.y : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1382,11 +1382,11 @@ void FParser::SF_MobjMomz(void)
|
|||
if(t_argc > 1)
|
||||
{
|
||||
if(mo)
|
||||
mo->velz = fixedvalue(t_argv[1]);
|
||||
mo->vel.z = fixedvalue(t_argv[1]);
|
||||
}
|
||||
|
||||
t_return.type = svt_fixed;
|
||||
t_return.value.f = mo ? mo->velz : 0;
|
||||
t_return.value.f = mo ? mo->vel.z : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue