better initial camera position
authorsheepluva
Fri, 05 Dec 2014 02:21:35 +0100
changeset 10628 9361e7d7c410
parent 10627 07ff179b0d97
child 10629 ce046762f796
better initial camera position
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Fri Dec 05 02:20:33 2014 +0100
+++ b/hedgewars/uWorld.pas	Fri Dec 05 02:21:35 2014 +0100
@@ -228,7 +228,7 @@
 prevPoint.Y:= cScreenHeight div 2;
 //prevTargetPoint.X:= 0;
 //prevTargetPoint.Y:= 0;
-WorldDx:=  -(LAND_WIDTH div 2);// + cScreenWidth div 2;
+WorldDx:=  -(LongInt(leftX + (playWidth div 2))); // -(LAND_WIDTH div 2);// + cScreenWidth div 2;
 WorldDy:=  -(LAND_HEIGHT - (playHeight div 2)) + (cScreenHeight div 2);
 
 //aligns it to the bottom of the screen, minus the border