about summary refs log tree commit diff
path: root/src/engine/shared
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-15 11:23:49 +0100
committeroy <Tom_Adams@web.de>2011-03-15 11:23:49 +0100
commit30d9c9f4d9e46fec403f3fa810898017a18e93b6 (patch)
tree722a14c6fb470c65e21a1ec8daab0c1391c03d38 /src/engine/shared
parent27e5a6af0d09192e1a865332f35bde4a0ac180dd (diff)
downloadzcatch-30d9c9f4d9e46fec403f3fa810898017a18e93b6.tar.gz
zcatch-30d9c9f4d9e46fec403f3fa810898017a18e93b6.zip
made network support clan name and country code for players
Diffstat (limited to 'src/engine/shared')
-rw-r--r--src/engine/shared/config_variables.h5
-rw-r--r--src/engine/shared/protocol.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h
index afb24e54..c495461e 100644
--- a/src/engine/shared/config_variables.h
+++ b/src/engine/shared/config_variables.h
@@ -8,8 +8,9 @@
 #include "././game/variables.h"
 
 
-MACRO_CONFIG_STR(PlayerName, player_name, 24, "nameless tee", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Name of the player")
-MACRO_CONFIG_STR(ClanName, clan_name, 32, "", CFGFLAG_SAVE|CFGFLAG_CLIENT, "(not used)")
+MACRO_CONFIG_STR(PlayerName, player_name, 16, "nameless tee", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Name of the player")
+MACRO_CONFIG_STR(PlayerClan, player_clan, 12, "", CFGFLAG_SAVE|CFGFLAG_CLIENT, "Clan of the player")
+MACRO_CONFIG_INT(PlayerCountry, player_country, -1, -1, 1000, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Country of the player")
 MACRO_CONFIG_STR(Password, password, 32, "", CFGFLAG_CLIENT|CFGFLAG_SERVER, "Password to the server")
 MACRO_CONFIG_STR(Logfile, logfile, 128, "", CFGFLAG_SAVE|CFGFLAG_CLIENT|CFGFLAG_SERVER, "Filename to log all output to")
 MACRO_CONFIG_INT(ConsoleOutputLevel, console_output_level, 0, 0, 2, CFGFLAG_CLIENT|CFGFLAG_SERVER, "Adjusts the amount of information in the console")
diff --git a/src/engine/shared/protocol.h b/src/engine/shared/protocol.h
index 296294d9..859f4941 100644
--- a/src/engine/shared/protocol.h
+++ b/src/engine/shared/protocol.h
@@ -79,9 +79,8 @@ enum
 	MAX_INPUT_SIZE=128,
 	MAX_SNAPSHOT_PACKSIZE=900,
 
-	MAX_CLANNAME_LENGTH=32,
-	MAX_NAME_LENGTH=24,
-	
+	MAX_NAME_LENGTH=16,
+	MAX_CLAN_LENGTH=12,
 
 	// message packing
 	MSGFLAG_VITAL=1,