diff options
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/game.gd b/client/game.gd index 70a3a371..48f393e0 100644 --- a/client/game.gd +++ b/client/game.gd @@ -29,7 +29,7 @@ func _ready(): Global.error_message = reason; $SceneTransition.instant_to("res://menu/error_menu.tscn") ) - + await mp.init if mp.player_id == -1: push_error("multiplayer has not been initialized") @@ -94,18 +94,18 @@ func _ready(): ) mp.connect("put_item", func(tile: Vector2i, player: int): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] var p: Player = players[player] p.put_item(t) ) mp.connect("set_progress", func(tile: Vector2i, progress: float, warn: bool): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.progress(progress, warn) ) mp.connect("set_finished", func(tile: Vector2i, warn: bool): - var t: FullTile = map.tile_by_pos[str(tile)] + var t: Floor = map.tile_by_pos[str(tile)] t.finish(warn) ) |