1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-19 19:39:43 +00:00

more fixes to multiplayer

This commit is contained in:
Zeno Rogue
2021-03-06 11:46:13 +01:00
parent 032a6b6df2
commit 40d450676e
15 changed files with 97 additions and 92 deletions

View File

@@ -326,12 +326,11 @@ EX void initgame() {
#endif
if(multi::players > 1 && !shmup::on) {
for(int i=0; i<numplayers(); i++)
makeEmpty(playerpos(i));
for(cell *pc: player_positions())
makeEmpty(pc);
}
else {
for(int i=0; i<numplayers(); i++)
makeEmpty(cwt.at);
makeEmpty(cwt.at);
}
if(specialland == laMinefield && bounded) {
@@ -1258,9 +1257,8 @@ EX void stop_game() {
for(int i=0; i<10; i++) for(int l=0; l<landtypes; l++)
exploreland[i][l] = 0;
for(int i=0; i<numplayers(); i++)
if(multi::playerActive(i))
multi::deaths[i]++;
for(int i: player_indices())
multi::deaths[i]++;
#if CAP_SAVE
anticheat::tampered = false;