♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'

This commit is contained in:
Juliano Leal Goncalves 2021-06-27 02:01:45 -03:00 committed by Stephen C. Wills
commit 940a120bf9
17 changed files with 108 additions and 143 deletions

View file

@ -101,8 +101,7 @@ void PlacePlayer(int pnum)
dPlayer[newPosition.x][newPosition.y] = pnum + 1;
if (pnum == MyPlayerId) {
ViewX = newPosition.x;
ViewY = newPosition.y;
ViewPosition = newPosition;
}
}
}