hedgewars/uWorld.pas
changeset 23 16322d14f068
parent 13 7a5db822fd3f
child 39 b78e7185ed13
equal deleted inserted replaced
22:517be8dc5b76 23:16322d14f068
   106 DrawLand(WorldDx, WorldDy, Surface);
   106 DrawLand(WorldDx, WorldDy, Surface);
   107 // Water
   107 // Water
   108 r.y:= WorldDy + cWaterLine + 32;
   108 r.y:= WorldDy + cWaterLine + 32;
   109 if r.y < cScreenHeight then
   109 if r.y < cScreenHeight then
   110    begin
   110    begin
       
   111    if r.y < 0 then r.y:= 0;
   111    r.h:= cScreenHeight - r.y;
   112    r.h:= cScreenHeight - r.y;
   112    r.x:= 0;
   113    r.x:= 0;
   113    r.w:= cScreenWidth;
   114    r.w:= cScreenWidth;
   114    SDL_FillRect(Surface, @r, cWaterColor)
   115    SDL_FillRect(Surface, @r, cWaterColor)
   115    end;
   116    end;