control: add g path_clean to remove all links from node (#475)

refactor: small cosmetic changes
This commit is contained in:
jeefo 2023-08-08 11:48:37 +03:00
commit fb301b7b19
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
23 changed files with 205 additions and 132 deletions

View file

@ -111,7 +111,7 @@ public:
// provides utility functions to not call original engine (less call-cost)
class Game final : public Singleton <Game> {
public:
using EntitySearch = Lambda <EntitySearchResult (edict_t *)>;
using EntitySearch = const Lambda <EntitySearchResult (edict_t *)> &;
private:
int m_drawModels[DrawLine::Count] {};
@ -227,12 +227,12 @@ public:
}
// get "maxplayers" limit on server
int maxClients () const {
int maxClients () const {
return globals->maxClients;
}
// get the fakeclient command interface
bool isBotCmd () const {
bool isBotCmd () const {
return !m_botArgs.empty ();
}