- Add 'add' parameter to SetActorVelocity.
SVN r1810 (trunk)
This commit is contained in:
parent
17a43e7753
commit
173646971d
3 changed files with 5 additions and 5 deletions
|
|
@ -478,7 +478,7 @@ bool P_Thing_Raise(AActor *thing)
|
|||
return true;
|
||||
}
|
||||
|
||||
void P_Thing_SetVelocity(AActor *actor, fixed_t vx, fixed_t vy, fixed_t vz, bool add)
|
||||
void P_Thing_SetVelocity(AActor *actor, fixed_t vx, fixed_t vy, fixed_t vz, bool add, bool setbob)
|
||||
{
|
||||
if (actor != NULL)
|
||||
{
|
||||
|
|
@ -490,7 +490,7 @@ void P_Thing_SetVelocity(AActor *actor, fixed_t vx, fixed_t vy, fixed_t vz, bool
|
|||
actor->velx += vx;
|
||||
actor->vely += vy;
|
||||
actor->velz += vz;
|
||||
if (actor->player != NULL)
|
||||
if (setbob && actor->player != NULL)
|
||||
{
|
||||
actor->player->velx += vx;
|
||||
actor->player->vely += vy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue