gameServer/Votes.hs
changeset 10218 1d7112ccb3e9
parent 10216 6928a323097f
child 10392 5012e1f9e893
--- a/gameServer/Votes.hs	Fri Mar 28 21:20:25 2014 +0400
+++ b/gameServer/Votes.hs	Fri Mar 28 23:04:23 2014 +0400
@@ -68,7 +68,17 @@
         let rs = Map.lookup roomSave (roomSaves rm)
         case rs of
              Nothing -> return []
-             Just (mp, p) -> return [ModifyRoom $ \r -> r{params = p, mapParams = mp}]
+             Just (mp, p) -> do
+                 cl <- thisClient
+                 chans <- roomClientsChans
+                 let a = map (replaceChans chans) $ answerFullConfigParams cl mp p
+                 return $ 
+                    (ModifyRoom $ \r -> r{params = p, mapParams = mp})
+                    : SendUpdateOnThisRoom
+                    : a
+        where
+            replaceChans chans (AnswerClients _ msg) = AnswerClients chans msg
+            replaceChans _ a = a
 
 
 startVote :: VoteType -> Reader (ClientIndex, IRnC) [Action]