Fix stupid typo that broke the camera aiming at the enemy that killed you in Duke3D

This commit is contained in:
Richard C. Gobeille 2020-04-07 10:00:51 -07:00 committed by Christoph Oelckers
parent eaf27c2583
commit 53baf228eb

View file

@ -1411,7 +1411,7 @@ ACTOR_STATIC void G_MovePlayers(void)
if (pPlayer->wackedbyactor >= 0 && sprite[pPlayer->wackedbyactor].statnum < MAXSTATUS) if (pPlayer->wackedbyactor >= 0 && sprite[pPlayer->wackedbyactor].statnum < MAXSTATUS)
{ {
pPlayer->q16ang += fix16_to_int(G_GetAngleDelta(pPlayer->q16ang, pPlayer->q16ang += fix16_from_int(G_GetAngleDelta(fix16_to_int(pPlayer->q16ang),
getangle(sprite[pPlayer->wackedbyactor].x - pPlayer->pos.x, getangle(sprite[pPlayer->wackedbyactor].x - pPlayer->pos.x,
sprite[pPlayer->wackedbyactor].y - pPlayer->pos.y)) sprite[pPlayer->wackedbyactor].y - pPlayer->pos.y))
>> 1); >> 1);