Disable nextmap in Synergy and Dystopia (bug 3687, bug 3741; r=liam)
authorFyren <fyrenmoo@gmail.com>
Wed Apr 01 05:56:51 2009 -0700 (2009-04-01)
changeset 2692126e2d41c2b3
parent 2691 f5321cb4d895
child 2693 3a3ef7b81219
Disable nextmap in Synergy and Dystopia (bug 3687, bug 3741; r=liam)
plugins/nextmap.sp
     1.1 --- a/plugins/nextmap.sp	Wed Apr 01 04:35:51 2009 -0700
     1.2 +++ b/plugins/nextmap.sp	Wed Apr 01 05:56:51 2009 -0700
     1.3 @@ -54,10 +54,12 @@
     1.4   
     1.5  public OnPluginStart()
     1.6  {
     1.7 -	decl String:desc[128];
     1.8 -	GetGameFolderName(desc, sizeof(desc));
     1.9 +	decl String:game[128];
    1.10 +	GetGameFolderName(game, sizeof(game));
    1.11  
    1.12 -	if (StrEqual(desc, "left4dead", false))
    1.13 +	if (StrEqual(game, "left4dead", false)
    1.14 +			|| StrEqual(game, "dystopia", false)
    1.15 +			|| StrEqual(game, "synergy", false))
    1.16  		return;
    1.17  
    1.18  	LoadTranslations("common.phrases");
    1.19 @@ -81,10 +83,12 @@
    1.20   
    1.21  public OnConfigsExecuted()
    1.22  {
    1.23 -	decl String:desc[128];
    1.24 -	GetGameFolderName(desc, sizeof(desc));
    1.25 +	decl String:game[128];
    1.26 +	GetGameFolderName(game, sizeof(game));
    1.27  
    1.28 -	if (StrEqual(desc, "left4dead", false))
    1.29 +	if (StrEqual(game, "left4dead", false)
    1.30 +			|| StrEqual(game, "dystopia", false)
    1.31 +			|| StrEqual(game, "synergy", false))
    1.32  		return;
    1.33  
    1.34  	decl String:lastMap[64], String:currentMap[64];