diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 3ccdb9c92..afb382804 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -464,6 +464,19 @@ void moveplayers(void) //Players p->jetpack_amount = 1599; } + if (p->actorsqu >= 0) + { + int ang = getincangle(p->getang(), getangle(sprite[p->actorsqu].x - p->posx, sprite[p->actorsqu].y - p->posy)) >> 2; + if (!cl_syncinput) + { + p->angAdjust += ang; + } + else + { + p->addang(ang); + } + } + if (s->extra > 0) { // currently alive... @@ -481,6 +494,19 @@ void moveplayers(void) //Players p->posz = s->z - (20 << 8); p->newowner = -1; + + if (p->wackedbyactor >= 0 && sprite[p->wackedbyactor].statnum < MAXSTATUS) + { + int ang = getincangle(p->getang(), getangle(sprite[p->wackedbyactor].x - p->posx, sprite[p->wackedbyactor].y - p->posy)) >> 1; + if (!cl_syncinput) + { + p->angAdjust += ang; + } + else + { + p->addang(ang); + } + } } s->ang = p->getang(); } diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp index 46098daef..da5d39175 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -810,11 +810,6 @@ void applylook(int snum, double factor, fixed_t adjustment) p->addrotscrnang(factor * -24); } - if (p->actorsqu >= 0) - { - p->q16ang += fix16_from_dbl(factor * (getincangle(p->getang(), getangle(sprite[p->actorsqu].x - p->posx, sprite[p->actorsqu].y - p->posy)) >> 2)); - } - if (p->one_eighty_count < 0 && p->on_crane < 0) { fixed_t add = fix16_from_dbl(factor * 128); @@ -830,13 +825,6 @@ void applylook(int snum, double factor, fixed_t adjustment) p->q16ang += fix16_from_dbl(factor * p->angAdjust) + adjustment; apply_seasick(p, factor); } - else - { - if (p->wackedbyactor >= 0 && sprite[p->wackedbyactor].statnum < MAXSTATUS) - { - p->q16ang += fix16_from_dbl(factor * (getincangle(p->getang(), getangle(sprite[p->wackedbyactor].x - p->posx, sprite[p->wackedbyactor].y - p->posy)) >> 1)); - } - } } //---------------------------------------------------------------------------