Made replay menu easier to use.

This commit is contained in:
shavitush 2017-08-11 16:57:43 +03:00
parent e96661b1ce
commit b603727491

View File

@ -75,7 +75,7 @@ int gI_DefaultTeamSlots = 0;
// server specific // server specific
float gF_Tickrate = 0.0; float gF_Tickrate = 0.0;
char gS_Map[256]; char gS_Map[192];
int gI_ExpectedBots = 0; int gI_ExpectedBots = 0;
ConVar bot_quota = null; ConVar bot_quota = null;
any gA_CentralCache[CENTRALBOTCACHE_SIZE]; any gA_CentralCache[CENTRALBOTCACHE_SIZE];
@ -396,8 +396,8 @@ public void OnMapStart()
gB_ForciblyStopped = false; gB_ForciblyStopped = false;
GetCurrentMap(gS_Map, 256); GetCurrentMap(gS_Map, 192);
GetMapDisplayName(gS_Map, gS_Map, 256); GetMapDisplayName(gS_Map, gS_Map, 192);
if(!gB_Enabled) if(!gB_Enabled)
{ {
@ -1554,7 +1554,7 @@ public int MenuHandler_ReplaySubmenu(Menu menu, MenuAction action, int param1, i
if(StrEqual(info, "stop")) if(StrEqual(info, "stop"))
{ {
StopCentralReplay(param1); StopCentralReplay(param1);
OpenReplayMenu(param1); OpenReplaySubMenu(param1, gI_Track[param1]);
return 0; return 0;
} }
@ -1570,7 +1570,7 @@ public int MenuHandler_ReplaySubmenu(Menu menu, MenuAction action, int param1, i
{ {
Shavit_PrintToChat(param1, "%T", "CentralReplayPlaying", param1); Shavit_PrintToChat(param1, "%T", "CentralReplayPlaying", param1);
OpenReplayMenu(param1); OpenReplaySubMenu(param1, gI_Track[param1]);
} }
else else