hedgewars/ArgParsers.inc
changeset 5441 39962b855540
parent 5239 f34f391a223b
child 6426 2d44f6561e72
--- a/hedgewars/ArgParsers.inc	Sat Jul 23 16:07:43 2011 -0400
+++ b/hedgewars/ArgParsers.inc	Sun Jul 24 00:25:35 2011 -0400
@@ -50,7 +50,14 @@
     UserNick:= DecodeBase64(ParamStr(14));
     val(ParamStr(15), cReducedQuality);
     val(ParamStr(16), tmp);
-    cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp)));
+    cGrayScale:= false;
+    if (tmp > 9) and (tmp < 16) then 
+        begin
+        cGrayScale:= true;
+        cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp-9)))
+        end
+    else if tmp <= 9 then cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp)))
+    else cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp-6)));
     cLocaleFName:= ParamStr(17);
 end;