Correctly display shipment in the serverlist

This commit is contained in:
momo5502 2016-10-26 22:06:17 +02:00
parent 49016ccad2
commit 45c382c892
2 changed files with 12 additions and 0 deletions

View File

@ -325,6 +325,12 @@ namespace Components
info.Set("mapname", Dvar::Var("ui_mapname").Get<const char*>());
}
// Shipment patches
if (info.Get("mapname") == "mp_shipment_long" && Dvar::Var("sv_shortmap").Get<bool>())
{
info.Set("mapname", "mp_shipment");
}
// Set matchtype
// 0 - No match, connecting not possible
// 1 - Party, use Steam_JoinLobby to connect

View File

@ -130,6 +130,12 @@ namespace Components
info.Set("mapname", Dvar::Var("ui_mapname").Get<const char*>());
}
// Shipment patches
if (info.Get("mapname") == "mp_shipment_long" && Dvar::Var("sv_shortmap").Get<bool>())
{
info.Set("mapname", "mp_shipment");
}
// Set matchtype
// 0 - No match, connecting not possible
// 1 - Party, use Steam_JoinLobby to connect