aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-19 22:20:13 +0200
committertpart <tpart120@proton.me>2024-09-19 22:20:13 +0200
commita1bb61eb9aabcc786649693d64024515e4fdd87a (patch)
tree7f6a27eb539f3caf256e8ff2f8c758629410c866
parent90cea7f1d019352a4e305ab80032893439a97fcf (diff)
downloadhurrycurry-a1bb61eb9aabcc786649693d64024515e4fdd87a.tar
hurrycurry-a1bb61eb9aabcc786649693d64024515e4fdd87a.tar.bz2
hurrycurry-a1bb61eb9aabcc786649693d64024515e4fdd87a.tar.zst
Fix: Remove all occurences of finished tutorial in tutorial queue
-rw-r--r--client/game.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/game.gd b/client/game.gd
index 08493b2e..94826b1c 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -239,7 +239,8 @@ func handle_packet(p):
Global.set_profile("tutorials_played", played)
Global.save_profile()
- tutorial_queue.erase(item_names[p.item])
+ while item_names[p.item] in tutorial_queue:
+ tutorial_queue.erase(item_names[p.item])
if not tutorial_queue.is_empty():
tutorial_running = true