diff -r 88b0cf9d6de5 -r 55a1edd97911 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Mon Jan 26 14:57:05 2009 +0000 +++ b/hedgewars/uWorld.pas Mon Jan 26 15:53:43 2009 +0000 @@ -64,8 +64,8 @@ SDL_WarpMouse(cScreenWidth div 2, cScreenHeight div 2); prevPoint.X:= cScreenWidth div 2; prevPoint.Y:= cScreenHeight div 2; -WorldDx:= - (LAND_WIDTH shr 1) + cScreenWidth div 2; -WorldDy:= - (LAND_HEIGHT shr 1) + cScreenHeight div 2; +WorldDx:= - (LAND_WIDTH div 2) + cScreenWidth div 2; +WorldDy:= - (LAND_HEIGHT div 2) + cScreenHeight div 2; AMxShift:= 210 end; @@ -177,7 +177,7 @@ i:= Shift mod w; if i > 0 then dec(i, w); repeat - DrawSprite(spr, i, WorldDy + LAND_HEIGHT + 1 - SpritesData[spr].Height, 0); + DrawSprite(spr, i, WorldDy + LAND_HEIGHT - SpritesData[spr].Height, 0); inc(i, w) until i > cScreenWidth end; @@ -491,9 +491,9 @@ if cHasFocus then SDL_WarpMouse(CursorPoint.X, CursorPoint.Y); prevPoint:= CursorPoint; if WorldDy < cScreenHeight - cWaterLine - cVisibleWater then WorldDy:= cScreenHeight - cWaterLine - cVisibleWater; -if WorldDy > LAND_HEIGHT then WorldDy:= LAND_HEIGHT; +if WorldDy > LAND_HEIGHT + 1024 then WorldDy:= LAND_HEIGHT + 1024; if WorldDx < -LAND_WIDTH then WorldDx:= -LAND_WIDTH; -if WorldDx > cScreenWidth then WorldDx:= cScreenWidth; +if WorldDx > cScreenWidth then WorldDx:= cScreenWidth; end; initialization