mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Minor re-ordering to optimise this branch.
This commit is contained in:
parent
333d8c882e
commit
76e658bf1b
2 changed files with 4 additions and 4 deletions
|
@ -5108,9 +5108,9 @@ static void HWR_ProjectSprite(mobj_t *thing)
|
||||||
// choose a different rotation based on player view
|
// choose a different rotation based on player view
|
||||||
ang = R_PointToAngle (thing->x, thing->y) - thing->angle;
|
ang = R_PointToAngle (thing->x, thing->y) - thing->angle;
|
||||||
|
|
||||||
if ((ang < ANGLE_180) && (sprframe->rotate & SRF_RIGHT)) // See from right
|
if ((sprframe->rotate & SRF_RIGHT) && (ang < ANGLE_180)) // See from right
|
||||||
rot = 6; // F7 slot
|
rot = 6; // F7 slot
|
||||||
else if ((ang >= ANGLE_180) && (sprframe->rotate & SRF_LEFT)) // See from left
|
else if ((sprframe->rotate & SRF_LEFT) && (ang >= ANGLE_180)) // See from left
|
||||||
rot = 2; // F3 slot
|
rot = 2; // F3 slot
|
||||||
else // Normal behaviour
|
else // Normal behaviour
|
||||||
rot = (ang+ANGLE_202h)>>29;
|
rot = (ang+ANGLE_202h)>>29;
|
||||||
|
|
|
@ -1193,9 +1193,9 @@ static void R_ProjectSprite(mobj_t *thing)
|
||||||
// choose a different rotation based on player view
|
// choose a different rotation based on player view
|
||||||
ang = R_PointToAngle (thing->x, thing->y) - thing->angle;
|
ang = R_PointToAngle (thing->x, thing->y) - thing->angle;
|
||||||
|
|
||||||
if ((ang < ANGLE_180) && (sprframe->rotate & SRF_RIGHT)) // See from right
|
if ((sprframe->rotate & SRF_RIGHT) && (ang < ANGLE_180)) // See from right
|
||||||
rot = 6; // F7 slot
|
rot = 6; // F7 slot
|
||||||
else if ((ang >= ANGLE_180) && (sprframe->rotate & SRF_LEFT)) // See from left
|
else if ((sprframe->rotate & SRF_LEFT) && (ang >= ANGLE_180)) // See from left
|
||||||
rot = 2; // F3 slot
|
rot = 2; // F3 slot
|
||||||
else // Normal behaviour
|
else // Normal behaviour
|
||||||
rot = (ang+ANGLE_202h)>>29;
|
rot = (ang+ANGLE_202h)>>29;
|
||||||
|
|
Loading…
Reference in a new issue