Skip to content

Commit

Permalink
player: add BUGFIX for missing lighting town check in StartWalk2
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew authored and AJenbo committed Mar 4, 2021
1 parent 97f6383 commit 66ee422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ void StartWalk2(int pnum, int xvel, int yvel, int xoff, int yoff, int xadd, int
plr[pnum]._pxoff = xoff; // Offset player sprite to align with their previous tile position
plr[pnum]._pyoff = yoff;

// BUGFIX: missing `if (leveltype != DTYPE_TOWN) {` for call to ChangeLightXY and PM_ChangeLightOff.
ChangeLightXY(plr[pnum]._plid, plr[pnum]._px, plr[pnum]._py);
PM_ChangeLightOff(pnum);

Expand Down

0 comments on commit 66ee422

Please sign in to comment.