Fix server thinking game is still not finished sometimes
authorunc0rr
Sat, 24 Mar 2012 19:57:06 +0400
changeset 6815 ed63275e02b7
parent 6814 21928ae7c74b
child 6816 572571ea945e
Fix server thinking game is still not finished sometimes
gameServer/HWProtoInRoomState.hs
--- a/gameServer/HWProtoInRoomState.hs	Sat Mar 24 16:46:56 2012 +0100
+++ b/gameServer/HWProtoInRoomState.hs	Sat Mar 24 19:57:06 2012 +0400
@@ -214,10 +214,7 @@
     if isJust $ gameInfo rm then
         if (isMaster cl && isCorrect) then
             return [FinishGame]
-            else if not isCorrect then
-                return $ map SendTeamRemovalMessage clTeams
-                else
-                return []
+            else return $ map SendTeamRemovalMessage clTeams
         else
         return []
     where