plugins/mapchooser.sp
changeset 1483 10229d087615
parent 1482 9f6b862188c4
child 1506 d7a764893a3b
     1.1 --- a/plugins/mapchooser.sp	Wed Sep 26 02:48:22 2007 +0000
     1.2 +++ b/plugins/mapchooser.sp	Wed Sep 26 04:03:22 2007 +0000
     1.3 @@ -264,7 +264,12 @@
     1.4  
     1.5  public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
     1.6  {
     1.7 -	if (!GetArraySize(g_MapList) && g_Cvar_Fraglimit != INVALID_HANDLE)
     1.8 +	if (!GetArraySize(g_MapList) || g_Cvar_Fraglimit == INVALID_HANDLE)
     1.9 +	{
    1.10 +		return;
    1.11 +	}
    1.12 +	
    1.13 +	if (!GetConVarInt(g_Cvar_Fraglimit))
    1.14  	{
    1.15  		return;
    1.16  	}