1.1 --- a/core/MenuStyle_Valve.cpp Sat Oct 13 22:13:43 2007 +0000
1.2 +++ b/core/MenuStyle_Valve.cpp Sun Oct 14 00:04:21 2007 +0000
1.3 @@ -53,11 +53,11 @@
1.4 return &m_players[client];
1.5 }
1.6
1.7 -bool ValveMenuStyle::OnClientCommand(int client, const char *cmd)
1.8 +bool ValveMenuStyle::OnClientCommand(int client, const char *cmdname, const CCommand &cmd)
1.9 {
1.10 - if (strcmp(cmd, "sm_vmenuselect") == 0)
1.11 + if (strcmp(cmdname, "sm_vmenuselect") == 0)
1.12 {
1.13 - int key_press = atoi(engine->Cmd_Argv(1));
1.14 + int key_press = atoi(cmd.Arg(1));
1.15 g_ValveMenuStyle.ClientPressedKey(client, key_press);
1.16 return true;
1.17 }