[common] Player state life fix
This commit is contained in:
@@ -19,7 +19,7 @@ class Player {
|
||||
this.control = null;
|
||||
this.state = state == null ? new PlayerState(id) : state;
|
||||
this.state.reset();
|
||||
this.state.life = config.life;
|
||||
this.state.life = Math.isNaN(config.life) ? 0 : config.life;
|
||||
}
|
||||
|
||||
private function set_tankId(value:Int):Int {
|
||||
|
||||
Reference in New Issue
Block a user