- Add 'add' parameter to SetActorVelocity.

SVN r1810 (trunk)
This commit is contained in:
Randy Heit 2009-09-08 03:19:57 +00:00
commit 173646971d
3 changed files with 5 additions and 5 deletions

View file

@ -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;