void game_cl_Deathmatch::OnGameRoundStarted () { inherited::OnGameRoundStarted(); if (pCurBuyMenu && pCurBuyMenu->IsShown()) pCurBuyMenu->HideDialog(); if (local_player) { if (pCurBuyMenu) { pCurBuyMenu->IgnoreMoneyAndRank(false); pCurBuyMenu->SetRank(local_player->rank); } ClearBuyMenu(); LoadDefItemsForRank(pCurBuyMenu); ChangeItemsCosts(pCurBuyMenu); if (pCurBuyMenu && pCurPresetItems) { LoadTeamDefaultPresetItems(GetTeamMenu(local_player->team), pCurBuyMenu, pCurPresetItems); ReInitRewardGenerator(local_player); } } if (pCurBuyMenu) pCurBuyMenu->ClearPreset(_preset_idx_last); //----------------------------------------------------------------- if ( m_game_ui && m_game_ui->ActorMenu().IsShown() ) { m_game_ui->HideActorMenu(); } }
bool game_cl_ArtefactHunt::CanBeReady () { if (!local_player) return false; m_bMenuCalledFromReady = TRUE; SetCurrentSkinMenu(); SetCurrentBuyMenu(); if (!m_bTeamSelected) { if (CanCallTeamSelectMenu()) m_game_ui->m_pUITeamSelectWnd->ShowDialog(true); return false; }; if (!m_bSkinSelected) { if (CanCallSkinMenu()) pCurSkinMenu->ShowDialog(true); return false; }; if (pCurBuyMenu && !pCurBuyMenu->IsShown()) ClearBuyMenu(); m_bMenuCalledFromReady = FALSE; // return inherited::CanBeReady(); return true; };