Planet display wraps around properly east/west

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@28 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2002-09-10 12:06:16 +00:00
parent d93d6ab15a
commit 0f9da72dc3
+4
View File
@@ -1212,6 +1212,10 @@ ScrollPlanetSide (SIZE dx, SIZE dy, SIZE CountDown)
s.frame = pSolarSysState->TopoFrame; s.frame = pSolarSysState->TopoFrame;
SetGraphicScale (1 << (MAG_SHIFT + 8)); SetGraphicScale (1 << (MAG_SHIFT + 8));
DrawStamp (&s); DrawStamp (&s);
s.origin.x += MAP_WIDTH << MAG_SHIFT;
DrawStamp (&s);
s.origin.x -= MAP_WIDTH << (MAG_SHIFT + 1);
DrawStamp (&s);
SetGraphicScale (0); SetGraphicScale (0);
} }