| 113 | } |
| 114 | |
| 115 | void BaseMenuStyle::CancelMenu(CBaseMenu *menu) |
| 116 | { |
| 117 | #if defined MENU_DEBUG |
| 118 | logger->LogMessage("[SM_MENU] CancelMenu() (menu %p)", menu); |
| 119 | #endif |
| 120 | int maxClients = g_Players.GetMaxClients(); |
| 121 | for (int i=1; i<=maxClients; i++) |
| 122 | { |
| 123 | CBaseMenuPlayer *player = GetMenuPlayer(i); |
| 124 | if (player->bInMenu) |
| 125 | { |
| 126 | menu_states_t &states = player->states; |
| 127 | if (states.menu == menu) |
| 128 | { |
| 129 | _CancelClientMenu(i, MenuCancel_Interrupted); |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | bool BaseMenuStyle::CancelClientMenu(int client, bool autoIgnore) |
| 136 | { |
nothing calls this directly
no test coverage detected