Menu fixes.
This commit is contained in:
parent
fb8aa17ab1
commit
f3fef92c46
@ -160,7 +160,7 @@ namespace Components
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!key->func((Game::itemDef_t*)menu, handle))
|
||||
if (!key->func(menu, handle))
|
||||
{
|
||||
Game::PC_SourceError(handle, "couldn't parse menu keyword %s", token.string);
|
||||
break; // Fail
|
||||
@ -266,7 +266,7 @@ namespace Components
|
||||
}
|
||||
|
||||
// Load custom menus
|
||||
if (std::string(menuList->name) == "ui_mp/code.txt")
|
||||
if (std::string(menuList->name) == "ui_mp/menus.txt")
|
||||
{
|
||||
for (auto menu : Menus::CustomMenus)
|
||||
{
|
||||
|
@ -808,7 +808,7 @@ namespace Game
|
||||
typedef struct keywordHash_s
|
||||
{
|
||||
char *keyword;
|
||||
bool(*func)(itemDef_t *item, int handle);
|
||||
bool(*func)(menuDef_t *item, int handle);
|
||||
//struct keywordHash_s *next;
|
||||
} keywordHash_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user