if (argv(0) == "directmenu" || argv(0) == "directpanelhudmenu")
{
string filter = string_null;
- if (argv(0) == "directpanelhudmenu") filter = strzone("HUD");
+ if (argv(0) == "directpanelhudmenu") filter = "HUD";
if (argc == 1)
{
m_play_click_sound(MENU_SOUND_OPEN);
m_goto(strcat(filter, argv(1))); // switch to a menu item
}
- if (filter) strunzone(filter);
return;
}
SET_FIELD_COUNT(name, CATEGORY_FIRST, category_ent_count) \
CHECK_MAX_COUNT(name, MAX_CATEGORIES, category_ent_count, "SLIST_CATEGORY") \
cat = categories[name - 1] = new(slist_category); \
- cat.cat_name = strzone(#name); \
+ cat.cat_name = #name; \
cat.cat_enoverride_string = strzone(SLIST_CATEGORY_AUTOCVAR(name)); \
cat.cat_dioverride_string = strzone(dioverride); \
cat.cat_string = strzone(str);
if(catnum) \
{ \
strunzone(categories[i].override_string); \
+ categories[i].override_string = string_null; \
categories[i].override_field = catnum; \
continue; \
} \
} \
} \
strunzone(categories[i].override_string); \
+ categories[i].override_string = string_null; \
categories[i].override_field = 0; \
}
PROCESS_OVERRIDE(cat_enoverride_string, cat_enoverride)