fix: crash with hl25 structs on xash3d again
fix: %t placeholder should return damage inflictor when used in team attack section of chat fix: all arguments in bot commands are lowercased (resolves #680) bot: disable threads when engine's timescale is active bot: a little refactor for the code all over the places linkage: resolved crash due to sse alignment on ancient engines (resolves #614) utils move wave parse into crlib practice: move loading practice to thread pool build: allow to build with static linkents instead of hooking dlsym Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
parent
24be4479de
commit
38c45aff9a
37 changed files with 348 additions and 304 deletions
|
|
@ -231,8 +231,14 @@ public:
|
|||
void collectArgs () {
|
||||
m_args.clear ();
|
||||
|
||||
for (int i = 0; i < engfuncs.pfnCmd_Argc (); ++i) {
|
||||
m_args.emplace (String (engfuncs.pfnCmd_Argv (i)).lowercase ());
|
||||
for (auto i = 0; i < engfuncs.pfnCmd_Argc (); ++i) {
|
||||
String arg = engfuncs.pfnCmd_Argv (i);
|
||||
|
||||
// only make case-insensetive command itself and first argument
|
||||
if (i < 2) {
|
||||
arg = arg.lowercase ();
|
||||
}
|
||||
m_args.emplace (arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue