Revert "Engine: properly detect if we are in single player mode"

This reverts commit 9939d963efa13332a1b9c2cf0d53bd90bc772ed1. It turns out we actually should check on !g_pServer->IsActive() as we shouldn't restrict on our listen server. Development code heavily relies on this.
This commit is contained in:
Kawe Mazidjatari 2024-12-05 20:05:13 +01:00
parent 9939d963ef
commit 8c85e1ec68

View File

@ -25,8 +25,6 @@
#include <ebisusdk/EbisuSDK.h>
#include <engine/cmd.h>
extern CGlobalVarsBase* gpGlobals;
//------------------------------------------------------------------------------
// Purpose: console command callbacks
//------------------------------------------------------------------------------
@ -236,8 +234,8 @@ bool CClientState::_ProcessStringCmd(CClientState* thisptr, NET_StringCmd* msg)
if (thisptr_ADJ->m_bRestrictServerCommands
#ifndef CLIENT_DLL
// Don't restrict commands from the server in single player
&& gpGlobals->gameMode != GameMode_t::SP_MODE
// Don't restrict commands if we are on our own listen server
&& !g_pServer->IsActive()
#endif // !CLIENT_DLL
)
{