void CTeamHandler::GameFrame(int frameNum) { if (!(frameNum & (TEAM_SLOWUPDATE_RATE-1))) { for (int a = 0; a < ActiveTeams(); ++a) { Team(a)->ResetFrameVariables(); } for (int a = 0; a < ActiveTeams(); ++a) { Team(a)->SlowUpdate(); } } }
void CTeamHandler::GameFrame(int frameNum) { if ((frameNum % TEAM_SLOWUPDATE_RATE) == 0) { for (int a = 0; a < ActiveTeams(); ++a) { teams[a]->ResetResourceState(); } for (int a = 0; a < ActiveTeams(); ++a) { teams[a]->SlowUpdate(); } } }