Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasylidong committed Apr 7, 2024
1 parent ff39ee4 commit 381444a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified addons/sourcemod/plugins/optional/AnneHappy/infected_control.smx
Binary file not shown.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/AnneHappy/infected_control.sp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma semicolon 1
#pragma newdecls required
#define DEBUG 0
#define DEBUG 1
// 头文件
#include <sourcemod>
#include <sdktools>
Expand Down Expand Up @@ -792,7 +792,7 @@ bool HasReachedLimit(int zombieclass)
int count = 0;
static char convar[16];
for (int infected = 1; infected <= MaxClients; infected++)
if (IsClientConnected(infected) && IsClientInGame(infected) && !IsGhost(infected)
if (IsClientConnected(infected) && IsClientInGame(infected) && !IsPlayerAlive(infected)
&& GetEntProp(infected, Prop_Send, "m_zombieClass") == zombieclass)
count += 1;

Expand Down Expand Up @@ -1331,7 +1331,7 @@ stock int GetCurrentSINum()
{
int sum = 0;
for (int i = 0; i < MaxClients; i++)
if (IsInfectedBot(i) && !IsGhost(i))
if (IsInfectedBot(i) && !IsPlayerAlive(i))
sum++;

return sum;
Expand Down

0 comments on commit 381444a

Please sign in to comment.