Skip to content

Commit

Permalink
fix the targeting of the first player when dead
Browse files Browse the repository at this point in the history
bugfix for 'rework targeting'
  • Loading branch information
pionere committed Nov 15, 2023
1 parent 8c96831 commit f9f86e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ void CheckCursMove()
curitem[1] = dItem[mx][my];
if (dFlags[mx][my] & BFLAG_DEAD_PLAYER) {
for (pnum = 0; pnum < MAX_PLRS; pnum++) {
if (/*pnum != mypnum && plr._pmode == PM_DEATH &&*/ plr._px == mx && plr._py == my && plr._pActive && plr._pDunLevel == currLvl._dLevelIdx) {
deadplr[0] = pnum;
if (/*pnum != mypnum && plr._pmode == PM_DEATH &&*/ plr._px == mx && plr._py == my && plr._pActive && plr._pDunLevel == currLvl._dLevelIdx) {
deadplr[0] = pnum + 1;
}
}

Expand Down Expand Up @@ -510,7 +510,7 @@ void CheckCursMove()
case TGT_DEAD:
// select a dead player
if (deadplr[0] != 0) {
pcursplr = deadplr[0];
pcursplr = deadplr[0] - 1;
pcurspos.x = mx;
pcurspos.y = my;
return;
Expand Down

0 comments on commit f9f86e2

Please sign in to comment.