Ep1 compile fixes.
authorNicholas Hastings <skamonkey@gmail.com>
Mon Aug 05 12:06:04 2013 -0400 (2013-08-05)
changeset 3975835659a15ce3
parent 3974 9b3779f472d4
child 3976 bc77cfde7c5c
Ep1 compile fixes.
core/ChatTriggers.cpp
     1.1 --- a/core/ChatTriggers.cpp	Mon Aug 05 11:46:29 2013 -0400
     1.2 +++ b/core/ChatTriggers.cpp	Mon Aug 05 12:06:04 2013 -0400
     1.3 @@ -136,7 +136,7 @@
     1.4  	}
     1.5  
     1.6  #if SOURCE_ENGINE == SE_EPISODEONE
     1.7 -	m_bIsINS = (strncmp(g_SourceMod.GetGameFolderName(), "insurgency") == 0);
     1.8 +	m_bIsINS = (strcmp(g_SourceMod.GetGameFolderName(), "insurgency") == 0);
     1.9  
    1.10  	if (m_bIsINS)
    1.11  	{
    1.12 @@ -258,7 +258,7 @@
    1.13  
    1.14  	const char * pCommandName = command.Arg(0);
    1.15  #if SOURCE_ENGINE == SE_EPISODEONE
    1.16 -	if (m_bIsINS && strncmp(pCommandName, "say2") && strlen(args) >= 4)
    1.17 +	if (m_bIsINS && strcmp(pCommandName, "say2") == 0 && strlen(args) >= 4)
    1.18  	{
    1.19  		args += 4;
    1.20  	}
    1.21 @@ -321,12 +321,15 @@
    1.22  
    1.23  #if SOURCE_ENGINE == SE_DOTA
    1.24  void ChatTriggers::OnSayCommand_Post(const CCommandContext &context, const CCommand &command)
    1.25 +{
    1.26  #elif SOURCE_ENGINE >= SE_ORANGEBOX
    1.27  void ChatTriggers::OnSayCommand_Post(const CCommand &command)
    1.28 +{
    1.29  #else
    1.30  void ChatTriggers::OnSayCommand_Post()
    1.31 +{
    1.32 +	CCommand command;
    1.33  #endif
    1.34 -{
    1.35  	int client = g_ConCmds.GetCommandClient();
    1.36  
    1.37  	if (m_bWillProcessInPost)