- Duke/RR: fixed move_player smart action.

This commit is contained in:
Christoph Oelckers 2022-10-24 22:08:42 +02:00
parent 33002b37a9
commit 9342b7b1a4
2 changed files with 2 additions and 2 deletions

View file

@ -3524,7 +3524,7 @@ void move_d(DDukeActor *actor, int playernum, int xvel)
goalang = VecToAngle(newpos - actor->spr.pos.XY());
angdif = deltaangle(actor->spr.angle, goalang) * 0.25;
if (angdif > -DAngle22_5/16 && angdif < nullAngle) angdif = nullAngle;
actor->spr.angle = angdif;
actor->spr.angle += angdif;
}
if (actor->temp_data[1] == 0 || a == 0)

View file

@ -3537,7 +3537,7 @@ void move_r(DDukeActor *actor, int pnum, int xvel)
goalang = VecToAngle(newpos - actor->spr.pos.XY());
angdif = deltaangle(actor->spr.angle, goalang) * 0.25;
if (angdif > -DAngle22_5 / 16 && angdif < nullAngle) angdif = nullAngle;
actor->spr.angle = angdif;
actor->spr.angle += angdif;
}
if (actor->temp_data[1] == 0 || a == 0)