Merge branch 'directionchar' into 'master'

Autobrake & decoupling player sprite angle from camera angle

See merge request !69
This commit is contained in:
toaster 2017-09-19 07:56:22 -04:00
commit 3cc14e3985
24 changed files with 495 additions and 236 deletions

View file

@ -1104,7 +1104,7 @@ static void R_ProjectSprite(mobj_t *thing)
if (sprframe->rotate != SRF_SINGLE || papersprite)
{
ang = R_PointToAngle (thing->x, thing->y) - thing->angle;
ang = R_PointToAngle (thing->x, thing->y) - (thing->player ? thing->player->drawangle : thing->angle);
if (papersprite)
ang_scale = abs(FINESINE(ang>>ANGLETOFINESHIFT));
}