Allow 8 teams in server 0.9.15
authorunc0rr
Sat, 25 Dec 2010 23:09:54 +0300
branch0.9.15
changeset 4681 f2c30204a3fd
parent 4679 876e103586d1
child 4683 34a1d5df1df3
Allow 8 teams in server
ChangeLog.txt
gameServer/HWProtoInRoomState.hs
--- a/ChangeLog.txt	Sat Dec 25 20:47:29 2010 +0100
+++ b/ChangeLog.txt	Sat Dec 25 23:09:54 2010 +0300
@@ -1,6 +1,16 @@
 + features
 * bugfixes
 
+0.9.14 -> 0.9.15:
+ - Christmas theme
+ - Draw map mode
+ - CTF and other game modes
+ - Ready timer
+ - Drill strike
+ - New modes: more wind, no
+ - Ability to define PRNG seed
+ - New hats
+
 0.9.13 -> 0.9.14:
  + New audio tracks
  + New forts: EvilChicken, Tank
--- a/gameServer/HWProtoInRoomState.hs	Sat Dec 25 20:47:29 2010 +0100
+++ b/gameServer/HWProtoInRoomState.hs	Sat Dec 25 23:09:54 2010 +0300
@@ -37,7 +37,7 @@
 handleCmd_inRoom clID clients rooms ("ADD_TEAM" : name : color : grave : fort : voicepack : flag : difStr : hhsInfo)
     | length hhsInfo == 15 && clientProto client < 30 = handleCmd_inRoom clID clients rooms ("ADD_TEAM" : name : color : grave : fort : voicepack : " " : flag : difStr : hhsInfo)
     | length hhsInfo /= 16 = [ProtocolError "Corrupted hedgehogs info"]
-    | length (teams room) == 6 = [Warning "too many teams"]
+    | length (teams room) == 8 = [Warning "too many teams"]
     | canAddNumber <= 0 = [Warning "too many hedgehogs"]
     | isJust findTeam = [Warning "There's already a team with same name in the list"]
     | gameinprogress room = [Warning "round in progress"]