mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Duke/RR: fixed move_player smart action.
This commit is contained in:
parent
33002b37a9
commit
9342b7b1a4
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue