@@ -113,8 +113,6 @@ static cell_t L4D_SpawnWitch(IPluginContext *pContext, const cell_t *params) {
113
113
114
114
CALL_DECL_MEMBER (TakeOverBot, bool , (bool ));
115
115
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)" );
118
116
if (!CALL_JOIN_MEMBER (TakeOverBot, " TakeOverBot" ))
119
117
return pContext->ThrowNativeError (" Error detected in native call (see error logs)" );
120
118
@@ -129,8 +127,6 @@ static cell_t L4D_TakeOverBot(IPluginContext *pContext, const cell_t *params) {
129
127
130
128
CALL_DECL_MEMBER (TakeOverZombieBot, void , (CTerrorPlayer *));
131
129
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)" );
134
130
if (!CALL_JOIN_MEMBER (TakeOverZombieBot, " TakeOverZombieBot" ))
135
131
return pContext->ThrowNativeError (" Error detected in native call (see error logs)" );
136
132
@@ -149,8 +145,6 @@ static cell_t L4D_TakeOverZombieBot(IPluginContext *pContext, const cell_t *para
149
145
150
146
CALL_DECL_MEMBER (ReplaceWithBot, bool , (bool ));
151
147
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)" );
154
148
if (!CALL_JOIN_MEMBER (ReplaceWithBot, " ReplaceWithBot" ))
155
149
return pContext->ThrowNativeError (" Error detected in native call (see error logs)" );
156
150
@@ -165,8 +159,6 @@ static cell_t L4D_ReplaceWithBot(IPluginContext *pContext, const cell_t *params)
165
159
166
160
CALL_DECL_MEMBER (SetHumanSpectator, bool , (CTerrorPlayer *));
167
161
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)" );
170
162
if (!CALL_JOIN_MEMBER (SetHumanSpectator, " SetHumanSpectator" ))
171
163
return pContext->ThrowNativeError (" Error detected in native call (see error logs)" );
172
164
0 commit comments