We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected: the command is executed once Actual: the command is executed twice
In commit 09e0202 the following lines were added: ` diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index c8711f9..2d7398b 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -372,6 +372,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo Print(OUTPUT_LEVEL_STANDARD, "Console", "Invalid arguments."); Print(OUTPUT_LEVEL_STANDARD, "Console", aBuf); }
else
pCommand->m_pfnCallback(&Result, pCommand->m_pUserData);
return; } } }
`
This leads to double execution of commands in console. Any idea why it was added? Can we remove it?
The text was updated successfully, but these errors were encountered:
Oh well.
diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index c8711f9..2d7398b 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -372,6 +372,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo Print(OUTPUT_LEVEL_STANDARD, "Console", "Invalid arguments."); Print(OUTPUT_LEVEL_STANDARD, "Console", aBuf); } + else + pCommand->m_pfnCallback(&Result, pCommand->m_pUserData); + + return; } } }
Sorry, something went wrong.
So that's what was causing that bug! Thanks! Fixed in 1e9d7be.
No branches or pull requests
Expected: the command is executed once
Actual: the command is executed twice
In commit 09e0202 the following lines were added:
`
diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp
index c8711f9..2d7398b 100644
--- a/src/engine/shared/console.cpp
+++ b/src/engine/shared/console.cpp
@@ -372,6 +372,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo
Print(OUTPUT_LEVEL_STANDARD, "Console", "Invalid arguments.");
Print(OUTPUT_LEVEL_STANDARD, "Console", aBuf);
}
`
This leads to double execution of commands in console. Any idea why it was added? Can we remove it?
The text was updated successfully, but these errors were encountered: