mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
9939d963ef
commit
8c85e1ec68
@ -25,8 +25,6 @@
|
|||||||
#include <ebisusdk/EbisuSDK.h>
|
#include <ebisusdk/EbisuSDK.h>
|
||||||
#include <engine/cmd.h>
|
#include <engine/cmd.h>
|
||||||
|
|
||||||
extern CGlobalVarsBase* gpGlobals;
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Purpose: console command callbacks
|
// Purpose: console command callbacks
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -236,8 +234,8 @@ bool CClientState::_ProcessStringCmd(CClientState* thisptr, NET_StringCmd* msg)
|
|||||||
|
|
||||||
if (thisptr_ADJ->m_bRestrictServerCommands
|
if (thisptr_ADJ->m_bRestrictServerCommands
|
||||||
#ifndef CLIENT_DLL
|
#ifndef CLIENT_DLL
|
||||||
// Don't restrict commands from the server in single player
|
// Don't restrict commands if we are on our own listen server
|
||||||
&& gpGlobals->gameMode != GameMode_t::SP_MODE
|
&& !g_pServer->IsActive()
|
||||||
#endif // !CLIENT_DLL
|
#endif // !CLIENT_DLL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user