# HG changeset patch # User Wuzzy # Date 1533720393 -7200 # Node ID 571f8110957e4872f814f9d35f21b35fd79b8e53 # Parent 73c2a669c1fdbe081226de328b2d9c6b8233b781 Replicate gear GUI overlays in world wrap diff -r 73c2a669c1fd -r 571f8110957e hedgewars/uWorld.pas --- 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