Don't confirm hogs number to room admin when no constraint hit
authorunc0rr
Sat, 02 Feb 2013 20:16:12 +0400
changeset 8477 330b0b8846cf
parent 8476 61d7269f16be
child 8478 d12531f09d59
Don't confirm hogs number to room admin when no constraint hit
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Sat Feb 02 00:47:34 2013 +0400
+++ b/gameServer/HWProtoInRoomState.hs	Sat Feb 02 20:16:12 2013 +0400
@@ -123,7 +123,7 @@
     cl <- thisClient
     r <- thisRoom
     clChan <- thisClientChans
-    roomChans <- roomClientsChans
+    others <- roomOthersChans
 
     let maybeTeam = findTeam r
     let team = fromJust maybeTeam
@@ -137,7 +137,7 @@
             [AnswerClients clChan ["HH_NUM", teamName, showB $ hhnum team]]
         else
             [ModifyRoom $ modifyTeam team{hhnum = hhNumber},
-            AnswerClients roomChans ["HH_NUM", teamName, showB hhNumber]]
+            AnswerClients others ["HH_NUM", teamName, showB hhNumber]]
     where
         hhNumber = readInt_ numberStr
         findTeam = find (\t -> teamName == teamname t) . teams