Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thearst3rd committed May 18, 2024
1 parent c9235b1 commit 40e9448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions engine/source/autosplitter/autosplitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion game/marble/client/ui/LevelPreviewGui.gui
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 40e9448

Please sign in to comment.