1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 18:27:55 +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

@@ -449,8 +449,8 @@ EX bool sameMonster(cell *c1, cell *c2) {
}
EX eMonster haveMount() {
for(int i=0; i<numplayers(); i++) if(multi::playerActive(i)) {
eMonster m = playerpos(i)->monst;
for(cell *pc: player_positions()) {
eMonster m = pc->monst;
if(m) return m;
}
return moNone;