hedgewars/uWorld.pas
changeset 13640 571f8110957e
parent 13639 73c2a669c1fd
child 13641 fc8c8910a281
--- a/hedgewars/uWorld.pas	Wed Aug 08 11:19:08 2018 +0200
+++ b/hedgewars/uWorld.pas	Wed Aug 08 11:26:33 2018 +0200
@@ -1347,7 +1347,21 @@
     else
         DrawWaves(-1, 50, cWaveHeight div 2, cWaveHeight div 2, 0);
 
-DrawGearsGui;
+if replicateToLeft then
+    begin
+    ShiftWorld(-1);
+    DrawGearsGui();
+    UnshiftWorld();
+    end;
+
+if replicateToRight then
+    begin
+    ShiftWorld(1);
+    DrawGearsGui();
+    UnshiftWorld();
+    end;
+
+DrawGearsGui();
 
 // everything after this ChangeDepth will be drawn outside the screen
 // note: negative parallax gears should last very little for a smooth stereo effect