From 40e9448be9424a7d14e5b740cecc798e83461d39 Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Sat, 18 May 2024 16:15:45 -0400 Subject: [PATCH] Typo fixes --- engine/source/autosplitter/autosplitter.cpp | 8 ++++---- game/marble/client/ui/LevelPreviewGui.gui | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/engine/source/autosplitter/autosplitter.cpp b/engine/source/autosplitter/autosplitter.cpp index 2ed9b2b5..3aacade5 100644 --- a/engine/source/autosplitter/autosplitter.cpp +++ b/engine/source/autosplitter/autosplitter.cpp @@ -94,7 +94,7 @@ ConsoleFunction(autosplitterSetLevel, void, 2, 2, "autosplitterSetLevel(level)") ConsoleFunction(autosplitterSetIsLoading, void, 2, 2, "autosplitterSetIsLoading(isLoading)") { Autosplitter *autosplitter = Autosplitter::get(); - if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0")) + if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0") == 0) autosplitter->data.isLoading = 0; else autosplitter->data.isLoading = 1; @@ -103,7 +103,7 @@ ConsoleFunction(autosplitterSetIsLoading, void, 2, 2, "autosplitterSetIsLoading( ConsoleFunction(autosplitterSetLevelStarted, void, 2, 2, "autosplitterSetLevelStarted(levelStarted)") { Autosplitter *autosplitter = Autosplitter::get(); - if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0")) + if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0") == 0) autosplitter->data.levelStarted = 0; else autosplitter->data.levelStarted = 1; @@ -112,7 +112,7 @@ ConsoleFunction(autosplitterSetLevelStarted, void, 2, 2, "autosplitterSetLevelSt ConsoleFunction(autosplitterSetLevelFinished, void, 2, 2, "autosplitterSetLevelFinished(levelFinished)") { Autosplitter *autosplitter = Autosplitter::get(); - if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0")) + if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0") == 0) autosplitter->data.levelFinished = 0; else autosplitter->data.levelFinished = 1; @@ -121,7 +121,7 @@ ConsoleFunction(autosplitterSetLevelFinished, void, 2, 2, "autosplitterSetLevelF ConsoleFunction(autosplitterSetEggFound, void, 2, 2, "autosplitterSetEggFound(eggFound)") { Autosplitter *autosplitter = Autosplitter::get(); - if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0")) + if (dStrcmp(argv[1], "false") == 0 || dStrcmp(argv[1], "0") == 0) autosplitter->data.eggFound = 0; else autosplitter->data.eggFound = 1; diff --git a/game/marble/client/ui/LevelPreviewGui.gui b/game/marble/client/ui/LevelPreviewGui.gui index 44f15ff9..385e96be 100644 --- a/game/marble/client/ui/LevelPreviewGui.gui +++ b/game/marble/client/ui/LevelPreviewGui.gui @@ -230,8 +230,9 @@ function levelPreviewGui::onA() loadMission(GameMissionInfo.getCurrentMission().file, true); // Tell autosplitter to start - autosplitterSetIsLoading(false); + autosplitterSetIsLoading(true); autosplitterSetLevel(GameMissionInfo.getCurrentMission().level); + autosplitterSetLevelStarted(true); sendAutosplitterData("start" SPC GameMissionInfo.getCurrentMission().level); sendAutosplitterData("loading started"); }