♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
This commit is contained in:
parent
d225202c34
commit
940a120bf9
17 changed files with 108 additions and 143 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue