gameServer/Utils.hs
changeset 3555 4c5ca656d1bb
parent 3501 a3159a410e5c
child 3671 a94d1dc4a8d9
--- a/gameServer/Utils.hs	Thu Jun 24 19:52:04 2010 +0400
+++ b/gameServer/Utils.hs	Fri Jun 25 10:05:42 2010 +0400
@@ -52,18 +52,8 @@
     [(x, rest)] | all isSpace rest -> Just x
     _         -> Nothing
 
-teamToNet :: Word16 -> TeamInfo -> [B.ByteString]
-teamToNet protocol team 
-    | protocol < 30 =
-        "ADD_TEAM"
-        : teamname team
-        : teamgrave team
-        : teamfort team
-        : teamvoicepack team
-        : teamowner team
-        : (B.pack $ show $ difficulty team)
-        : hhsInfo
-    | otherwise = 
+teamToNet :: TeamInfo -> [B.ByteString]
+teamToNet team =
         "ADD_TEAM"
         : teamname team
         : teamgrave team