gameServer/OfficialServer/GameReplayStore.hs
changeset 8371 0551b5c3de9a
parent 6040 a740069c21e3
child 8423 8aa450f6cf2c
--- a/gameServer/OfficialServer/GameReplayStore.hs	Thu Jan 10 22:59:46 2013 +0400
+++ b/gameServer/OfficialServer/GameReplayStore.hs	Sat Jan 12 01:18:50 2013 +0400
@@ -14,7 +14,7 @@
 
 
 saveReplay :: RoomInfo -> IO ()
-saveReplay r = do
+saveReplay r = when allPlayersHaveRegisteredAccounts $ do
     time <- getCurrentTime
     u <- liftM hashUnique newUnique
     let fileName = "replays/" ++ show time ++ "-" ++ show u
@@ -23,4 +23,3 @@
     E.catch
         (writeFile fileName (show replayInfo))
         (\(e :: IOException) -> warningM "REPLAYS" $ "Couldn't write to " ++ fileName ++ ": " ++ show e)
-                   
\ No newline at end of file