Correctly display shipment in the serverlist
This commit is contained in:
parent
49016ccad2
commit
45c382c892
@ -325,6 +325,12 @@ namespace Components
|
|||||||
info.Set("mapname", Dvar::Var("ui_mapname").Get<const char*>());
|
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
|
// Set matchtype
|
||||||
// 0 - No match, connecting not possible
|
// 0 - No match, connecting not possible
|
||||||
// 1 - Party, use Steam_JoinLobby to connect
|
// 1 - Party, use Steam_JoinLobby to connect
|
||||||
|
@ -130,6 +130,12 @@ namespace Components
|
|||||||
info.Set("mapname", Dvar::Var("ui_mapname").Get<const char*>());
|
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
|
// Set matchtype
|
||||||
// 0 - No match, connecting not possible
|
// 0 - No match, connecting not possible
|
||||||
// 1 - Party, use Steam_JoinLobby to connect
|
// 1 - Party, use Steam_JoinLobby to connect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user