about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Jaworski <savander.pl@gmail.com>2015-08-15 00:00:58 +0200
committerAdam Jaworski <savander.pl@gmail.com>2015-08-15 00:00:58 +0200
commita63534b1d4df293c2f0e5d31500b53438aca7f7a (patch)
treee15343ae95d71b61c35cd65bc5e1d2be8e30de47
parent6c6175931eebb63202abb012cf53fbd9211e0c51 (diff)
downloadzcatch-a63534b1d4df293c2f0e5d31500b53438aca7f7a.tar.gz
zcatch-a63534b1d4df293c2f0e5d31500b53438aca7f7a.zip
IF DEFINED(CONf_SQL) fixed.
-rw-r--r--.gitignore3
-rw-r--r--src/game/server/gamecontext.cpp6
-rw-r--r--src/game/server/gamemodes/zcatch.h3
3 files changed, 10 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index c57c1dfb..849a7459 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,4 +27,5 @@ config.cfg
 .cproject
 
 banmaster*
-
+.settings/*
+.settings
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index 0c564928..e28b944d 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -878,7 +878,11 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
 					str_format(aBuf, sizeof(aBuf), "If there are less than %d players, the round does not end and all players are released instead.", g_Config.m_SvLastStandingPlayers);
 					SendChatTarget(ClientID, aBuf);
 				}
+#if defined(CONF_SQL)
 				SendChatTarget(ClientID, "Commands list: top5, rank, help, victims, kills, w, whisper, c, converse");
+#else
+				SendChatTarget(ClientID, "Commands list: help, victims, kills, w, whisper, c, converse");
+#endif
 			}
 
 #if defined(CONF_SQL)
@@ -909,8 +913,10 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
 #endif
 			else if(!str_comp_nocase("help", pMsg->m_pMessage + 1))
 			{
+#if defined(CONF_SQL)
 				SendChatTarget(ClientID, "/rank <name> or /rank - show position in ranking.");
 				SendChatTarget(ClientID, "/top5 or /top5 <number> - Top5 winners on server.");
+#endif
 				SendChatTarget(ClientID, "/victims - who is waiting for your death");
 				SendChatTarget(ClientID, "/kills -  list of players you killed");
 				SendChatTarget(ClientID, "/whisper <name> <msg>");
diff --git a/src/game/server/gamemodes/zcatch.h b/src/game/server/gamemodes/zcatch.h
index 1952614c..214da3f0 100644
--- a/src/game/server/gamemodes/zcatch.h
+++ b/src/game/server/gamemodes/zcatch.h
@@ -6,8 +6,9 @@
 #define GAME_SERVER_GAMEMODES_ZCATCH_H
 
 #include <game/server/gamecontroller.h>
+#if defined(CONF_SQL)
 #include "../ranking.h"
-
+#endif
 class CGameController_zCatch: public IGameController
 {
 	int m_OldMode;