aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/game.gd8
-rw-r--r--client/map/items/food_processor.gd1
2 files changed, 5 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)
)
diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd
index 1be3d591..f2226e5f 100644
--- a/client/map/items/food_processor.gd
+++ b/client/map/items/food_processor.gd
@@ -27,6 +27,7 @@ func progress(p: float, warn: bool):
super(p, warn)
processing.emitting = true
processing.rotation.y += p * TAU
+ base.rotation.y += p * TAU
func finish(warn: bool):
super(warn)