# HG changeset patch # User unc0rr # Date 1359821772 -14400 # Node ID 330b0b8846cf829ec8b3665e78184b9226f3ab35 # Parent 61d7269f16be5091634c75f4231cc1cad0ef3faf Don't confirm hogs number to room admin when no constraint hit diff -r 61d7269f16be -r 330b0b8846cf 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