hedgewars/uLandUtils.pas
changeset 15143 794dc7237ca1
parent 12311 1b5a4807f8f4
child 15900 128ace913837
equal deleted inserted replaced
15142:d97f0b96e45f 15143:794dc7237ca1
    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;