hedgewars/uLandUtils.pas
branchui-scaling
changeset 15288 c4fd2813b127
parent 15148 794dc7237ca1
equal deleted inserted replaced
13395:0135e64c6c66 15288:c4fd2813b127
    39 begin
    39 begin
    40 playHeight:= LAND_HEIGHT;
    40 playHeight:= LAND_HEIGHT;
    41 topY:= 0;
    41 topY:= 0;
    42 
    42 
    43 lx:= LongInt(LAND_WIDTH) - 1;
    43 lx:= LongInt(LAND_WIDTH) - 1;
       
    44 
       
    45 // don't change world edges for drawn maps
       
    46 if (cMapGen = mgDrawn) then
       
    47     // edges were adjusted already in GenDrawnMap() in uLand
       
    48     EXIT;
    44 
    49 
    45 // use maximum available map width if there is no special world edge
    50 // use maximum available map width if there is no special world edge
    46 if WorldEdge = weNone then
    51 if WorldEdge = weNone then
    47     begin
    52     begin
    48     playWidth:= LAND_WIDTH;
    53     playWidth:= LAND_WIDTH;