From ab773444b5344dad3efaa022af451a862dce58fe Mon Sep 17 00:00:00 2001 From: AlexMelenchon <47743805+AlexMelenchon@users.noreply.github.com> Date: Sun, 29 Dec 2019 10:49:10 +0100 Subject: [PATCH] Miss Spacing in Console Module --- Motor2D/j1ConsoleM.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Motor2D/j1ConsoleM.cpp b/Motor2D/j1ConsoleM.cpp index d29a59f..e82c0b3 100644 --- a/Motor2D/j1ConsoleM.cpp +++ b/Motor2D/j1ConsoleM.cpp @@ -77,15 +77,15 @@ bool j1ConsoleM::ManageCommand(const char* command) commandBuffer = command; //We check if it has the number adequate of arguments - int wordNum = commandBuffer.Find(" ") + 1; - if (wordNum < commandFound->min_arg || wordNum > commandFound->max_arg) - break; + int wordNum = commandBuffer.Find(" ") + 1; + if (wordNum < commandFound->min_arg || wordNum > commandFound->max_arg) + break; //If all the checks were positive, we execute the command switch (commandFound->function) { case UIFunction::FNC_LOG: - commandBuffer.Cut(0, commandBuffer.FindFirst(" ")+1); + commandBuffer.Cut(0, commandBuffer.FindFirst(" ") + 1); commandFound->callback->OnGui(UIEventType::EVENT_CONSOLE, commandFound->function, nullptr, commandBuffer.GetString()); break; case UIFunction::FNC_GODMODE: @@ -101,11 +101,10 @@ bool j1ConsoleM::ManageCommand(const char* command) break; case UIFunction::FNC_LOADMAP: - commandBuffer.Cut(0, commandBuffer.FindFirst(" ")+1); - commandFound->callback->OnGui(UIEventType::EVENT_CONSOLE, commandFound->function,nullptr, commandBuffer.GetString()); + commandBuffer.Cut(0, commandBuffer.FindFirst(" ") + 1); + commandFound->callback->OnGui(UIEventType::EVENT_CONSOLE, commandFound->function, nullptr, commandBuffer.GetString()); break; - case UIFunction::FNC_FPS: commandBuffer.Cut(0, commandBuffer.FindFirst(" ") + 1); commandFound->callback->OnGui(UIEventType::EVENT_CONSOLE, commandFound->function, nullptr, commandBuffer.GetString()); @@ -145,7 +144,7 @@ void j1ConsoleM::OnGui(UIEventType type, UIFunction func, j1UIelement* userPoint CommandNum++; } } - break; + break; } } } \ No newline at end of file