Browse Source

fix _px/_py being used instead of _pxoff/_pyoff (#397)

pull/25/head
squidcc 8 years ago committed by Robin Eklind
parent
commit
3f7055387d
  1. 4
      Source/player.cpp

4
Source/player.cpp

@ -1126,8 +1126,8 @@ void __fastcall PM_ChangeLightOff(int pnum)
l = &LightList[plr[pnum]._plid];
ymul = -1;
x = 2 * plr[pnum]._py + plr[pnum]._px;
y = 2 * plr[pnum]._py - plr[pnum]._px;
x = 2 * plr[pnum]._pyoff + plr[pnum]._pxoff;
y = 2 * plr[pnum]._pyoff - plr[pnum]._pxoff;
if (x < 0) {
xmul = -1;
x = -x;

Loading…
Cancel
Save