From 55408e6e3cf678a9816cf9f9ddcc28bee7e0153f Mon Sep 17 00:00:00 2001 From: Richard Gobeille Date: Thu, 20 Nov 2008 14:06:36 +0000 Subject: [PATCH] - Duke3d: smooth movement of recons. --- source/games/duke/src/actors.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 18ec90f07..ea458d810 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -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->spr.ang += actor->temp_data[3] >> 3; - if (actor->spr.pos.Z < Owner->spr.pos.Z) - actor->spr.pos.Z += 1024; - else actor->spr.pos.Z -= 1024; + if (actor->spr.pos.Z < Owner->spr.pos.Z - 512) + actor->spr.pos.Z += 512; + 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)