gameServer/HWProtoInRoomState.hs
changeset 13712 e241c9efd217
parent 13706 dec29ef3ef76
child 13729 f4c8c6a174e8
equal deleted inserted replaced
13711:d5f12b1d180d 13712:e241c9efd217
   365     thisRoomMasterId <- liftM masterID thisRoom
   365     thisRoomMasterId <- liftM masterID thisRoom
   366     let newAdminId = fromJust maybeClientId
   366     let newAdminId = fromJust maybeClientId
   367     let sameRoom = clientRoom rnc thisClientId == clientRoom rnc newAdminId
   367     let sameRoom = clientRoom rnc thisClientId == clientRoom rnc newAdminId
   368     return $
   368     return $
   369         if (not (master || serverAdmin)) then
   369         if (not (master || serverAdmin)) then
   370             [Warning $ loc "You not the room master or a server admin!"]
   370             [Warning $ loc "You're not the room master or a server admin!"]
   371         else if (isNothing maybeClientId) then
   371         else if (isNothing maybeClientId) then
   372             [Warning $ loc "Player is not online."]
   372             [Warning $ loc "Player is not online."]
   373         else if (Just newAdminId == thisRoomMasterId) then
   373         else if (Just newAdminId == thisRoomMasterId) then
   374             [Warning $ loc "You're already the room master."]
   374             [Warning $ loc "You're already the room master."]
   375         else if (not sameRoom) then
   375         else if (not sameRoom) then