# HG changeset patch # User Nicholas Hastings # Date 1375718764 14400 # Node ID 835659a15ce3a2f77eaef809e715832323b43909 # Parent 9b3779f472d479ac57acd5b1ea4ef5b5443f9f44 Ep1 compile fixes. diff -r 9b3779f472d4 -r 835659a15ce3 core/ChatTriggers.cpp --- a/core/ChatTriggers.cpp Mon Aug 05 11:46:29 2013 -0400 +++ b/core/ChatTriggers.cpp Mon Aug 05 12:06:04 2013 -0400 @@ -136,7 +136,7 @@ } #if SOURCE_ENGINE == SE_EPISODEONE - m_bIsINS = (strncmp(g_SourceMod.GetGameFolderName(), "insurgency") == 0); + m_bIsINS = (strcmp(g_SourceMod.GetGameFolderName(), "insurgency") == 0); if (m_bIsINS) { @@ -258,7 +258,7 @@ const char * pCommandName = command.Arg(0); #if SOURCE_ENGINE == SE_EPISODEONE - if (m_bIsINS && strncmp(pCommandName, "say2") && strlen(args) >= 4) + if (m_bIsINS && strcmp(pCommandName, "say2") == 0 && strlen(args) >= 4) { args += 4; } @@ -321,12 +321,15 @@ #if SOURCE_ENGINE == SE_DOTA void ChatTriggers::OnSayCommand_Post(const CCommandContext &context, const CCommand &command) +{ #elif SOURCE_ENGINE >= SE_ORANGEBOX void ChatTriggers::OnSayCommand_Post(const CCommand &command) +{ #else void ChatTriggers::OnSayCommand_Post() +{ + CCommand command; #endif -{ int client = g_ConCmds.GetCommandClient(); if (m_bWillProcessInPost)