game: core: change player to player.isconnected
befort: if a player is disconnected he doesn't have an object after: he have un object with a socket == None
This commit is contained in:
@ -5,7 +5,7 @@ class MyPlayer extends Player
|
||||
{
|
||||
constructor(client, game, rail_start_x, rail_start_y, rail_stop_x, rail_stop_y, nb_goal, positon)
|
||||
{
|
||||
super(client.me.id, game, rail_start_x, rail_start_y, rail_stop_x, rail_stop_y, nb_goal, positon);
|
||||
super(client.me.id, game, rail_start_x, rail_start_y, rail_stop_x, rail_stop_y, nb_goal, positon, true);
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user