diff --git a/src/script/api/script_asyncmode.hpp b/src/script/api/script_asyncmode.hpp index 8f95cbb1ef..ba8014b86d 100644 --- a/src/script/api/script_asyncmode.hpp +++ b/src/script/api/script_asyncmode.hpp @@ -39,11 +39,6 @@ public: */ ScriptAsyncMode(HSQUIRRELVM vm); #else - /** - * Generate a text from string. You can set parameters to the instance which - * can be required for the string. - * @param string The string of the text. - */ /** * Creating instance of this class switches the build mode to Asynchronous or Non-Asynchronous (normal). * @note When the instance is destroyed, it restores the mode that was @@ -54,7 +49,7 @@ public: #endif /* DOXYGEN_API */ /** - * Destroying this instance reset the building mode to the mode it was + * Destroying this instance resets the asynchronous mode to the mode it was * in when the instance was created. */ ~ScriptAsyncMode(); diff --git a/src/script/api/script_object.cpp b/src/script/api/script_object.cpp index bff12ca46d..157c35b7ee 100644 --- a/src/script/api/script_object.cpp +++ b/src/script/api/script_object.cpp @@ -356,7 +356,7 @@ ScriptObject::ActiveInstance::~ActiveInstance() /* Are we only interested in the estimate costs? */ bool estimate_only = GetDoCommandMode() != nullptr && !GetDoCommandMode()(); - /* Are we only interested in the estimate costs? */ + /* Should the command be executed asynchronously? */ bool asynchronous = GetDoCommandAsyncMode() != nullptr && GetDoCommandAsyncMode()() && GetActiveInstance()->GetScriptType() == ST_GS; /* Only set p2 when the command does not come from the network. */