summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_atoms.c2
-rw-r--r--src/ui/ui_main.c1
-rw-r--r--src/ui/ui_shared.c3
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index cac94738..6a6ddda6 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -356,7 +356,7 @@ qboolean UI_ConsoleCommand( int realTime )
if ( Q_stricmp (cmd, "menu") == 0 )
{
- strcpy( arg1, UI_Argv( 1 ) );
+ arg1 = UI_Argv( 1 );
if( Menu_Count() > 0 )
{
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 0d545dfc..35d8f67e 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -5219,6 +5219,7 @@ void UI_LoadNonIngame() {
void _UI_SetActiveMenu( uiMenuCommand_t menu ) {
char buf[256];
+ Com_Printf( "_UI_SetActiveMenu\n" );
// this should be the ONLY way the menu system is brought up
// enusure minumum menu data is cached
if (Menu_Count() > 0) {
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c
index 3240ebb8..67824064 100644
--- a/src/ui/ui_shared.c
+++ b/src/ui/ui_shared.c
@@ -4105,6 +4105,7 @@ menuDef_t *Menus_ActivateByName(const char *p) {
int i;
menuDef_t *m = NULL;
menuDef_t *focus = Menu_GetFocused();
+
for (i = 0; i < menuCount; i++) {
if (Q_stricmp(Menus[i].window.name, p) == 0) {
m = &Menus[i];
@@ -5568,8 +5569,6 @@ Menu_New
void Menu_New(int handle) {
menuDef_t *menu = &Menus[menuCount];
- Com_Printf( "menu_new\n" );
-
if (menuCount < MAX_MENUS) {
Menu_Init(menu);
if (Menu_Parse(handle, menu)) {