Commit 8ced0314 authored by Samual's avatar Samual

We can rely on using gametype command for lsmaps update trigger

parent adba4c6b
......@@ -736,7 +736,12 @@ void GameCommand_gametype(float request, float argc)
MapInfo_SwitchGameType(t);
MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 0);
if(MapInfo_count > 0)
{
// update lsmaps in case the gametype changed, this way people can easily list maps for it
if(lsmaps_reply != "") { strunzone(lsmaps_reply); }
lsmaps_reply = strzone(getlsmaps());
bprint("Game type successfully switched to ", s, "\n");
}
else
{
bprint("Cannot use this game type: no map for it found\n");
......
......@@ -1539,10 +1539,6 @@ void NextLevel()
if(autocvar_g_campaign)
CampaignPreIntermission();
// update lsmaps in case the gametype changed, this way people can easily list maps for it
if(lsmaps_reply != "") { strunzone(lsmaps_reply); }
lsmaps_reply = strzone(getlsmaps());
MUTATOR_CALLHOOK(MatchEnd);
localcmd("\nsv_hook_gameend\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment