about summary refs log tree commit diff
path: root/src/game/client/components/menus_ingame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/menus_ingame.cpp')
-rw-r--r--src/game/client/components/menus_ingame.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp
index 8b28b47e..d4b2b609 100644
--- a/src/game/client/components/menus_ingame.cpp
+++ b/src/game/client/components/menus_ingame.cpp
@@ -44,7 +44,7 @@ void MENUS::render_game(RECT main_view)
 			if(ui_do_button(&spectate_button, "Spectate", 0, &button, ui_draw_menu_button, 0))
 			{
 				gameclient.send_switch_team(-1);
-				menu_active = false;
+				set_active(false);
 			}
 		}
 		
@@ -58,7 +58,7 @@ void MENUS::render_game(RECT main_view)
 				if(ui_do_button(&spectate_button, "Join Red", 0, &button, ui_draw_menu_button, 0))
 				{
 					gameclient.send_switch_team(0);
-					menu_active = false;
+					set_active(false);
 				}
 			}
 
@@ -70,7 +70,7 @@ void MENUS::render_game(RECT main_view)
 				if(ui_do_button(&spectate_button, "Join Blue", 0, &button, ui_draw_menu_button, 0))
 				{
 					gameclient.send_switch_team(1);
-					menu_active = false;
+					set_active(false);
 				}
 			}
 		}
@@ -84,7 +84,7 @@ void MENUS::render_game(RECT main_view)
 				if(ui_do_button(&spectate_button, "Join Game", 0, &button, ui_draw_menu_button, 0))
 				{
 					gameclient.send_switch_team(0);
-					menu_active = false;
+					set_active(false);
 				}
 			}
 		}
@@ -390,7 +390,7 @@ void MENUS::render_servercontrol(RECT main_view)
 					gameclient.snap.player_infos[callvote_selectedplayer])
 				{
 					gameclient.voting->callvote_kick(callvote_selectedplayer);
-					menu_active = false;
+					set_active(false);
 				}
 			}
 		}