gameServer/Actions.hs
branchios-revival
changeset 11353 62af5c67662d
parent 11320 556eafd1443a
child 11336 e6e748d021d0
--- a/gameServer/Actions.hs	Mon Nov 09 04:24:08 2015 +0100
+++ b/gameServer/Actions.hs	Mon Nov 09 04:25:29 2015 +0100
@@ -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)