mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-16 03:07:18 +00:00
fix tapping 'back' on sm_wr <map> using the current map
This commit is contained in:
parent
edc3178081
commit
4a0a7f4497
@ -706,6 +706,11 @@ public Action Command_WorldRecord(int client, int args)
|
||||
GetCmdArgString(gS_ClientMap[client], 256);
|
||||
}
|
||||
|
||||
return ShowWRStyleMenu(client, gS_ClientMap[client]);
|
||||
}
|
||||
|
||||
public Action ShowWRStyleMenu(int client, const char[] map)
|
||||
{
|
||||
Menu menu = new Menu(MenuHandler_StyleChooser);
|
||||
menu.SetTitle("Choose a style:");
|
||||
|
||||
@ -904,7 +909,7 @@ public int WRMenu_Handler(Menu m, MenuAction action, int param1, int param2)
|
||||
|
||||
else if(action == MenuAction_Cancel && param2 == MenuCancel_ExitBack)
|
||||
{
|
||||
Command_WorldRecord(param1, 0);
|
||||
ShowWRStyleMenu(param1, gS_ClientMap[param1]);
|
||||
}
|
||||
|
||||
else if(action == MenuAction_End)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user