Gently disable nextmap on L4D, rather than fail load (bug 3683, r+a12=dvander).
This commit is contained in:
parent
8509f0857a
commit
a85031be53
@ -57,11 +57,8 @@ public OnPluginStart()
|
||||
decl String:desc[128];
|
||||
GetGameFolderName(desc, sizeof(desc));
|
||||
|
||||
if(StrEqual(desc, "left4dead", false))
|
||||
{
|
||||
SetFailState("The 'nextmap' plugin is not supported on Left 4 Dead.");
|
||||
if (StrEqual(desc, "left4dead", false))
|
||||
return;
|
||||
}
|
||||
|
||||
LoadTranslations("common.phrases");
|
||||
LoadTranslations("nextmap.phrases");
|
||||
@ -84,6 +81,12 @@ public OnMapStart()
|
||||
|
||||
public OnConfigsExecuted()
|
||||
{
|
||||
decl String:desc[128];
|
||||
GetGameFolderName(desc, sizeof(desc));
|
||||
|
||||
if (StrEqual(desc, "left4dead", false))
|
||||
return;
|
||||
|
||||
decl String:lastMap[64], String:currentMap[64];
|
||||
GetNextMap(lastMap, sizeof(lastMap));
|
||||
GetCurrentMap(currentMap, 64);
|
||||
|
Loading…
Reference in New Issue
Block a user