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:
4
game.cpp
4
game.cpp
@@ -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;
|
||||
|
Reference in New Issue
Block a user