GS: Documentation/comment fixes for ScriptAsyncMode
This commit is contained in:
@@ -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();
|
||||
|
@@ -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. */
|
||||
|
Reference in New Issue
Block a user