aboutsummaryrefslogtreecommitdiff
path: root/game/hud/HudScript.cpp
diff options
context:
space:
mode:
authorMax-001 <80035972+Max-001@users.noreply.github.com>2025-01-10 14:13:46 +0100
committerGitHub <noreply@github.com>2025-01-10 14:13:46 +0100
commitbb2db93bfb8dd7e080d2708548eae660e6b33913 (patch)
tree32a54bc4469cb894aa009736e070bdc382e48e76 /game/hud/HudScript.cpp
parentd20b25828b53af170a6534263e8de114e7fac121 (diff)
parent8d46ad5a20d1aa5b784291ae323e38d1e0d59351 (diff)
Merge pull request #122 from lonkaars/jaro/game
Jaro/game
Diffstat (limited to 'game/hud/HudScript.cpp')
-rw-r--r--game/hud/HudScript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/hud/HudScript.cpp b/game/hud/HudScript.cpp
index 8f77706..3fb7a77 100644
--- a/game/hud/HudScript.cpp
+++ b/game/hud/HudScript.cpp
@@ -3,6 +3,7 @@
#include "../Config.h"
#include "../Events.h"
+#include "menus/endgame/EndGameSubScript.h"
#include <climits>
@@ -91,5 +92,6 @@ bool HudScript::save() {
SaveManager & savemgr = this->get_save_manager();
savemgr.set(TOTAL_COINS_RUN, this->coin_amount);
savemgr.set(DISTANCE_RUN, this->distance_st);
+ this->trigger_event<ShowScoreEvent>();
return false;
}