mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix that hunt bug
This commit is contained in:
parent
05f154d765
commit
d29d86f746
2 changed files with 10 additions and 0 deletions
|
|
@ -781,6 +781,10 @@ class MarbleWorld extends Scheduler {
|
||||||
this.marble.setMode(Play);
|
this.marble.setMode(Play);
|
||||||
for (client => marble in this.clientMarbles)
|
for (client => marble in this.clientMarbles)
|
||||||
marble.setMode(Play);
|
marble.setMode(Play);
|
||||||
|
|
||||||
|
var huntMode = cast(this.gameMode, HuntMode);
|
||||||
|
|
||||||
|
huntMode.freeSpawns();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,12 @@ class HuntMode extends NullMode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function freeSpawns() {
|
||||||
|
for (i in 0...playerSpawnPoints.length) {
|
||||||
|
spawnPointTaken[i] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setupGems() {
|
function setupGems() {
|
||||||
gemGroupRadius = 20.0;
|
gemGroupRadius = 20.0;
|
||||||
maxGemsPerGroup = 4;
|
maxGemsPerGroup = 4;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue