Skip to content

Commit be00a0f

Browse files
committed
Update natives.cpp
1 parent 4079026 commit be00a0f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

shared/natives.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ static cell_t L4D_SpawnWitch(IPluginContext *pContext, const cell_t *params) {
113113

114114
CALL_DECL_MEMBER(TakeOverBot, bool, (bool));
115115
static cell_t L4D_TakeOverBot(IPluginContext *pContext, const cell_t *params) {
116-
if (!g_pZombieManager)
117-
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
118116
if (!CALL_JOIN_MEMBER(TakeOverBot, "TakeOverBot"))
119117
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
120118

@@ -129,8 +127,6 @@ static cell_t L4D_TakeOverBot(IPluginContext *pContext, const cell_t *params) {
129127

130128
CALL_DECL_MEMBER(TakeOverZombieBot, void, (CTerrorPlayer *));
131129
static cell_t L4D_TakeOverZombieBot(IPluginContext *pContext, const cell_t *params) {
132-
if (!g_pZombieManager)
133-
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
134130
if (!CALL_JOIN_MEMBER(TakeOverZombieBot, "TakeOverZombieBot"))
135131
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
136132

@@ -149,8 +145,6 @@ static cell_t L4D_TakeOverZombieBot(IPluginContext *pContext, const cell_t *para
149145

150146
CALL_DECL_MEMBER(ReplaceWithBot, bool, (bool));
151147
static cell_t L4D_ReplaceWithBot(IPluginContext *pContext, const cell_t *params) {
152-
if (!g_pZombieManager)
153-
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
154148
if (!CALL_JOIN_MEMBER(ReplaceWithBot, "ReplaceWithBot"))
155149
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
156150

@@ -165,8 +159,6 @@ static cell_t L4D_ReplaceWithBot(IPluginContext *pContext, const cell_t *params)
165159

166160
CALL_DECL_MEMBER(SetHumanSpectator, bool, (CTerrorPlayer *));
167161
static cell_t L4D_SetHumanSpectator(IPluginContext *pContext, const cell_t *params) {
168-
if (!g_pZombieManager)
169-
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
170162
if (!CALL_JOIN_MEMBER(SetHumanSpectator, "SetHumanSpectator"))
171163
return pContext->ThrowNativeError("Error detected in native call (see error logs)");
172164

0 commit comments

Comments
 (0)