about summary refs log tree commit diff
path: root/src/game/server/hooks.cpp
diff options
context:
space:
mode:
authorDominik Geyer <dominik.geyer@gmx.de>2008-10-05 09:57:46 +0000
committerDominik Geyer <dominik.geyer@gmx.de>2008-10-05 09:57:46 +0000
commitfaa96f6d3a7c0e66503faf413b6df41c369d62aa (patch)
treec4c4da4a7fe15af5e09a7410e9166d438a81f4bb /src/game/server/hooks.cpp
parent42f661ae70e7f5d2a1b32fba4db502f59a4f3147 (diff)
downloadzcatch-faa96f6d3a7c0e66503faf413b6df41c369d62aa.tar.gz
zcatch-faa96f6d3a7c0e66503faf413b6df41c369d62aa.zip
show if servers use non-standard tuning and let serverbrowser filter for these; ticket #393
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 8d37ed81..b3425694 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -33,6 +33,16 @@ void send_tuning_params(int cid)
 	*/
 }
 
+int mods_is_tuned()
+{
+	TUNING_PARAMS standard_tuning;
+	
+	if (memcmp(&standard_tuning, &tuning, sizeof(TUNING_PARAMS)) != 0)
+		return 1;
+	else
+		return 0;
+}
+
 // Server hooks
 void mods_client_direct_input(int client_id, void *input)
 {