Allow server admins to join room of another protocol version
authorunc0rr
Mon, 23 Jun 2014 22:22:29 +0400
changeset 10337 05a5762ab12c
parent 10336 3edfa6b68407
child 10338 9558b0380779
Allow server admins to join room of another protocol version
gameServer/HWProtoLobbyState.hs
--- a/gameServer/HWProtoLobbyState.hs	Thu Jun 19 23:32:11 2014 +0400
+++ b/gameServer/HWProtoLobbyState.hs	Mon Jun 23 22:22:29 2014 +0400
@@ -64,7 +64,7 @@
     return $
         if isNothing maybeRI then
             [Warning $ loc "No such room"]
-            else if not sameProto then
+            else if (not sameProto) && (not $ isAdministrator cl) then
             [Warning $ loc "Room version incompatible to your hedgewars version"]
             else if isRestrictedJoins jRoom then
             [Warning $ loc "Joining restricted"]