- ensure p->lookRight is reset to false in start checklook() like lookLeft is.

Repairs issue where player never returned to centre when they pressed the look right key.
This commit is contained in:
Mitchell Richters 2020-07-23 13:34:47 +10:00
parent 253dea7610
commit be0cbeed65

View file

@ -822,6 +822,7 @@ void checklook(int snum, int sb_snum)
auto p = &ps[snum]; auto p = &ps[snum];
p->lookLeft = false; p->lookLeft = false;
p->lookRight = false;
if ((sb_snum & SKB_LOOK_LEFT) && !p->OnMotorcycle) if ((sb_snum & SKB_LOOK_LEFT) && !p->OnMotorcycle)
{ {
SetGameVarID(g_iReturnVarID, 0, p->i, snum); SetGameVarID(g_iReturnVarID, 0, p->i, snum);