hedgewars/uWorld.pas
changeset 10628 9361e7d7c410
parent 10627 07ff179b0d97
child 10634 35d059bd0932
equal deleted inserted replaced
10627:07ff179b0d97 10628:9361e7d7c410
   226 uCursor.init();
   226 uCursor.init();
   227 prevPoint.X:= 0;
   227 prevPoint.X:= 0;
   228 prevPoint.Y:= cScreenHeight div 2;
   228 prevPoint.Y:= cScreenHeight div 2;
   229 //prevTargetPoint.X:= 0;
   229 //prevTargetPoint.X:= 0;
   230 //prevTargetPoint.Y:= 0;
   230 //prevTargetPoint.Y:= 0;
   231 WorldDx:=  -(LAND_WIDTH div 2);// + cScreenWidth div 2;
   231 WorldDx:=  -(LongInt(leftX + (playWidth div 2))); // -(LAND_WIDTH div 2);// + cScreenWidth div 2;
   232 WorldDy:=  -(LAND_HEIGHT - (playHeight div 2)) + (cScreenHeight div 2);
   232 WorldDy:=  -(LAND_HEIGHT - (playHeight div 2)) + (cScreenHeight div 2);
   233 
   233 
   234 //aligns it to the bottom of the screen, minus the border
   234 //aligns it to the bottom of the screen, minus the border
   235 SkyOffset:= 0;
   235 SkyOffset:= 0;
   236 HorizontOffset:= 0;
   236 HorizontOffset:= 0;