Gently disable nextmap on L4D, rather than fail load (bug 3683, r+a12=dvander).

This commit is contained in:
Fyren 2009-03-01 21:15:14 -05:00
parent 8509f0857a
commit a85031be53

View File

@ -58,10 +58,7 @@ public OnPluginStart()
GetGameFolderName(desc, sizeof(desc));
if (StrEqual(desc, "left4dead", false))
{
SetFailState("The 'nextmap' plugin is not supported on Left 4 Dead.");
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);