[Script] Better comments

This commit is contained in:
FutureRave 2021-11-13 13:32:20 +00:00
parent 446c55b0b0
commit c73794f6ea
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -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(<function>,<function>)
Script::AddFunction("ReplaceFunc", [](Game::scr_entref_t) // gsc: ReplaceFunc(<function>, <function>)
{
if (Game::Scr_GetNumParam() != 2u)
{