extensions/tf2/gameplayrules.cpp
changeset 3159 608c56ebced9
parent 3154 021f89d73ba0
     1.1 --- a/extensions/tf2/gameplayrules.cpp	Wed Nov 24 20:46:17 2010 -0500
     1.2 +++ b/extensions/tf2/gameplayrules.cpp	Sun Nov 28 22:41:48 2010 -0500
     1.3 @@ -64,17 +64,18 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 -void InitialiseRulesDetours()
     1.8 +bool InitialiseRulesDetours()
     1.9  {
    1.10  	setInWaitingForPlayersDetour = DETOUR_CREATE_MEMBER(SetInWaitingForPlayers, "SetInWaitingForPlayers");
    1.11  
    1.12  	if (setInWaitingForPlayersDetour != NULL)
    1.13  	{
    1.14  		setInWaitingForPlayersDetour->EnableDetour();
    1.15 -		return;
    1.16 +		return true;
    1.17  	}
    1.18  
    1.19  	g_pSM->LogError(myself, "No Gameplay Rules detours could be initialized - Disabled Gameplay Rules functions");
    1.20 +	return false;
    1.21  }
    1.22  
    1.23  void RemoveRulesDetours()