cvars: allow to set very long descriptions

cvars: added full descriptions to yb+restricted_weapons (closes #659)
crlib: update submodule
fix: send server messages should split as string and not stringref to keep null-terminated chunks
This commit is contained in:
jeefo 2025-02-15 13:51:45 +03:00
commit b8fb2e8845
No known key found for this signature in database
GPG key ID: D696786B81B667C8
9 changed files with 77 additions and 58 deletions

View file

@ -8,6 +8,9 @@
#pragma once
class BotSupport final : public Singleton <BotSupport> {
using AliasInfo = Twin <StringRef, StringRef>;
using AliasMap = HashMap <int32_t, AliasInfo, EmptyHash <int32_t> >;
private:
bool m_needToSendWelcome {};
float m_welcomeReceiveTime {};
@ -15,7 +18,7 @@ private:
StringArray m_sentences {};
SmallArray <Client> m_clients {};
HashMap <int32_t, String> m_weaponAliases {};
AliasMap m_weaponAliases {};
public:
BotSupport ();
@ -79,6 +82,9 @@ public:
// get's the wave length
float getWaveLength (StringRef filename);
// set custom cvar descriptions
void setCustomCvarDescriptions ();
public:
// re-show welcome after changelevel ?