Updated the game check with GetGameFolderName instead of GetGameDesc. (Bug 3473 r=dvander)

This commit is contained in:
Liam 2008-12-31 23:05:36 -05:00
parent 50580498c4
commit f96ca17f17

View File

@ -55,9 +55,9 @@ new g_CurrentMapStartTime;
public OnPluginStart()
{
decl String:desc[128];
GetGameDescription(desc, sizeof(desc));
GetGameFolderName(desc, sizeof(desc));
if(StrEqual(desc, "Left 4 Dead", false))
if(StrEqual(desc, "left4dead", false))
{
SetFailState("The 'nextmap' plugin is not supported on Left 4 Dead.");
return;