From c73794f6ea6d8aa79df7f665d1faa8945f7f50c7 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Sat, 13 Nov 2021 13:32:20 +0000 Subject: [PATCH] [Script] Better comments --- src/Components/Modules/Script.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/Script.cpp b/src/Components/Modules/Script.cpp index 4758784c..c88b219c 100644 --- a/src/Components/Modules/Script.cpp +++ b/src/Components/Modules/Script.cpp @@ -414,7 +414,6 @@ namespace Components void Script::SetReplacedPos(const char* what, const char* with) { - // Warn if the function was already detoured if (Script::ReplacedFunctions.find(what) != Script::ReplacedFunctions.end()) { Logger::Print("Warning: a function was already detoured by a script\n"); @@ -485,7 +484,7 @@ namespace Components void Script::AddFunctions() { - Script::AddFunction("ReplaceFunc", [](Game::scr_entref_t) // gsc: ReplaceFunc(,) + Script::AddFunction("ReplaceFunc", [](Game::scr_entref_t) // gsc: ReplaceFunc(, ) { if (Game::Scr_GetNumParam() != 2u) {