hedgewars/ArgParsers.inc
changeset 8221 5e2dc5813408
parent 8213 81553c5b9fd0
child 8278 9cdfcb5b7ddd
child 8302 a7934cd12469
--- a/hedgewars/ArgParsers.inc	Tue Dec 04 03:54:42 2012 +0100
+++ b/hedgewars/ArgParsers.inc	Tue Dec 04 10:17:16 2012 +0100
@@ -37,15 +37,22 @@
     cReducedQuality:= StrToInt(ParamStr(15));
     tmp:= StrToInt(ParamStr(16));
     GrayScale:= false;
-    if (tmp > 9) and (tmp < 16) then 
+{$IFDEF USE_S3D_RENDERING}
+    if (tmp > 9) and (tmp < 16) then
         begin
+        // set the gray anaglyph rendering
         GrayScale:= true;
         cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp-9)))
         end
-    else if tmp <= 9 then 
+    else if tmp <= 9 then
+        // set the fullcolor anaglyph
         cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp)))
-    else 
+    else
+        // any other mode
         cStereoMode:= TStereoMode(max(0, min(ord(high(TStereoMode)), tmp-6)));
+{$ELSE}
+	cStereoMode:= smNone;
+{$ENDIF}
     cLocaleFName:= ParamStr(17);
 end;