Fixing inconsistency between day and nights on uni_int location

This commit is contained in:
Vladislav Khorev committed 2026-06-11 21:19:39 +03:00
1 parent f52b6872b0
commit a9f4025333
10 files changed
+154 -54

No files matched your search

+13 -3
View File
@@ -75,8 +75,9 @@ namespace ZL {
}
}
MenuManager::MenuManager(Renderer& iRenderer) :
renderer(iRenderer)
MenuManager::MenuManager(Renderer& iRenderer, std::unordered_map<std::string, int>& globalInts) :
renderer(iRenderer),
globalInts(globalInts)
{
}
@@ -492,13 +493,22 @@ namespace ZL {
});
uiManager.setButtonCallback("videoSkip", [this](const std::string&) {
closePhoneEntirely();
if (isNight)
{
startDialogueFunc("dialog_video002");
}
else
{
startNightTransitionFunc();
auto day = globalInts["day"];
if (day == 0)
{
startDialogueFunc("dialog_video003");
}
else
{
startNightTransitionFunc();
}
}
});
}