- Duke3d: smooth movement of recons.

This commit is contained in:
Richard Gobeille 2008-11-20 14:06:36 +00:00 committed by Christoph Oelckers
parent 1389413ca1
commit 55408e6e3c

View file

@ -1781,9 +1781,11 @@ void recon(DDukeActor *actor, int explosion, int firelaser, int attacksnd, int p
actor->temp_data[3] = getincangle(actor->spr.ang, a); actor->temp_data[3] = getincangle(actor->spr.ang, a);
actor->spr.ang += actor->temp_data[3] >> 3; actor->spr.ang += actor->temp_data[3] >> 3;
if (actor->spr.pos.Z < Owner->spr.pos.Z) if (actor->spr.pos.Z < Owner->spr.pos.Z - 512)
actor->spr.pos.Z += 1024; actor->spr.pos.Z += 512;
else actor->spr.pos.Z -= 1024; else if (actor->spr.pos.Z > Owner->spr.pos.Z + 512)
actor->spr.pos.Z -= 512;
else actor->spr.pos.Z = Owner->spr.pos.Z;
} }
if (roamsnd >= 0 && S_CheckActorSoundPlaying(actor, roamsnd) < 1) if (roamsnd >= 0 && S_CheckActorSoundPlaying(actor, roamsnd) < 1)