gameServer/Actions.hs
changeset 11320 556eafd1443a
parent 11246 09a2d3988569
child 11341 e6e748d021d0
--- a/gameServer/Actions.hs	Sat Nov 07 21:01:04 2015 +0100
+++ b/gameServer/Actions.hs	Sat Nov 07 23:44:49 2015 +0300
@@ -762,10 +762,11 @@
 
 
 processAction (CheckSuccess info) = do
-    Just (CheckInfo fileName teams script) <- client's checkInfo
+    Just (CheckInfo fileName teams gameDetails) <- client's checkInfo
     p <- client's clientProto
     si <- gets serverInfo
-    io $ writeChan (dbQueries si) $ StoreAchievements p (B.pack fileName) (map toPair teams) script info
+    when (isJust gameDetails)
+        $ io $ writeChan (dbQueries si) $ StoreAchievements p (B.pack fileName) (map toPair teams) (fromJust gameDetails) info
     io $ moveCheckedRecord fileName
     where
         toPair t = (teamname t, teamowner t)