fix that hunt bug

This commit is contained in:
RandomityGuy 2024-06-29 19:17:25 +05:30
parent f73808fa89
commit cb64f5c738
2 changed files with 10 additions and 0 deletions

View file

@ -782,6 +782,10 @@ class MarbleWorld extends Scheduler {
this.marble.setMode(Play);
for (client => marble in this.clientMarbles)
marble.setMode(Play);
var huntMode = cast(this.gameMode, HuntMode);
huntMode.freeSpawns();
}
}
}

View file

@ -376,6 +376,12 @@ class HuntMode extends NullMode {
}
}
public function freeSpawns() {
for (i in 0...playerSpawnPoints.length) {
spawnPointTaken[i] = false;
}
}
function setupGems() {
gemGroupRadius = 20.0;
maxGemsPerGroup = 4;