From f8ff90516422edacd11cf880eb703def321694c2 Mon Sep 17 00:00:00 2001
From: JAROWMR <jarorutjes07@gmail.com>
Date: Wed, 8 Jan 2025 20:38:42 +0100
Subject: endgame show score

---
 game/hud/HudScript.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'game/hud')

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;
 }
-- 
cgit v1.2.3