diff options
author | tpart <tpart120@proton.me> | 2024-09-04 21:14:33 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-04 21:14:33 +0200 |
commit | fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03 (patch) | |
tree | 353cbf03272028ad5d63c15d6182ea1e67b48806 /client/game.gd | |
parent | 9c953125445760dbf5c0562854caaa0d1866fda9 (diff) | |
download | hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar.bz2 hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar.zst |
Fix crash on item finished; Clean up code; Update knife model
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 a3bef461..d764e6af 100644 --- a/client/game.gd +++ b/client/game.gd @@ -201,9 +201,9 @@ func _ready(): t.progress(position_, speed, warn) ) - mp.set_tile_finished.connect(func(tile: Vector2i, warn: bool): + mp.set_tile_finished.connect(func(tile: Vector2i): var t: Tile = map.get_tile_instance(tile) - t.finish(warn) + t.finish() ) mp.set_player_progress.connect(func(player: int, position_: float, speed: float, warn: bool): @@ -211,9 +211,9 @@ func _ready(): p.progress(position_, speed, warn) ) - mp.set_player_finished.connect(func(player: int, warn: bool): + mp.set_player_finished.connect(func(player: int): var p: Player = players[player] - p.finish(warn) + p.finish() ) mp.text_message.connect(func(player: int, text: String, timeout_initial: float, timeout_remaining: float): |