mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
prevent crash if incorrect zone setup
This commit is contained in:
@@ -27,7 +27,11 @@ export default class Game {
|
||||
}
|
||||
this.initLastSentLocations();
|
||||
this.zone.reset()
|
||||
this.zone.start()
|
||||
//If the zone cannot be setup, reset everything
|
||||
if(!this.zone.start()) {
|
||||
this.setState(GameState.SETUP);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (newState != GameState.PLAYING) {
|
||||
this.zone.reset();
|
||||
|
||||
Reference in New Issue
Block a user