()
| 226 | } |
| 227 | |
| 228 | static void PopMenu() { |
| 229 | S.StartLocalSound(menu_out_sound); |
| 230 | m_menudepth--; |
| 231 | if (m_menudepth < 0) |
| 232 | Com.Error(ERR_FATAL, "PopMenu: depth < 1"); |
| 233 | |
| 234 | if (0 < m_menudepth){ |
| 235 | m_drawfunc = m_layers[m_menudepth-1].draw; |
| 236 | m_keyfunc = m_layers[m_menudepth-1].key; |
| 237 | } |
| 238 | |
| 239 | if (0 == m_menudepth) |
| 240 | ForceMenuOff(); |
| 241 | |
| 242 | |
| 243 | } |
| 244 | |
| 245 | private static String Default_MenuKey(menuframework_s m, int key) { |
| 246 | String sound = null; |
no test coverage detected