Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jobmail committed Jun 10, 2024
1 parent 7b777a8 commit b269fde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void ServerActivate_Post(edict_t *pEdictList, int edictCount, int clientMax)
}

r_bMapHasBuyZone = g_Tries.entities.find("func_buyzone") != g_Tries.entities.end();
UTIL_ServerPrint("[DEBUG] r_bMapHasBuyZone = %d\n", r_bMapHasBuyZone);

g_RehldsHookchains->SV_DropClient()->registerHook(SV_DropClient_RH);
//g_RehldsHookchains->ED_Alloc()->registerHook(ED_Alloc_RH);
Expand Down
8 changes: 4 additions & 4 deletions refsapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,17 +444,17 @@ void Client_TeamInfo(void* mValue) {
g_PlayersNum[TEAM_DEAD_TT + new_team - 1]++;
}

UTIL_ServerPrint("[DEBUG] Team changed!!!\n");
//UTIL_ServerPrint("[DEBUG] Team changed!!!\n");

g_PlayersNum[g_Clients[id].team]--;

g_PlayersNum[new_team]++;

g_Clients[id].team = new_team;

UTIL_ServerPrint("[DEBUG] num_unassigned = %d, num_tt = %d, num_ct = %d, num_spec = %d, num_dead_tt = %d, num_dead_ct = %d\n",
g_PlayersNum[TEAM_UNASSIGNED], g_PlayersNum[TEAM_TERRORIST], g_PlayersNum[TEAM_CT], g_PlayersNum[TEAM_SPECTRATOR], g_PlayersNum[TEAM_DEAD_TT], g_PlayersNum[TEAM_DEAD_CT]
);
//UTIL_ServerPrint("[DEBUG] num_unassigned = %d, num_tt = %d, num_ct = %d, num_spec = %d, num_dead_tt = %d, num_dead_ct = %d\n",
// g_PlayersNum[TEAM_UNASSIGNED], g_PlayersNum[TEAM_TERRORIST], g_PlayersNum[TEAM_CT], g_PlayersNum[TEAM_SPECTRATOR], g_PlayersNum[TEAM_DEAD_TT], g_PlayersNum[TEAM_DEAD_CT]
//);
}

// FIX TEAM
Expand Down

0 comments on commit b269fde

Please sign in to comment.