forked from MTSR/mapserver
break
This commit is contained in:
parent
2c2e20404e
commit
50348775c3
@ -7,7 +7,6 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"image/draw"
|
"image/draw"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type MapBlockRenderer struct {
|
type MapBlockRenderer struct {
|
||||||
@ -72,7 +71,6 @@ func (r *MapBlockRenderer) Render(pos1, pos2 coords.MapBlockCoords) (*image.NRGB
|
|||||||
|
|
||||||
nodeName := mb.GetNodeName(x,y,z)
|
nodeName := mb.GetNodeName(x,y,z)
|
||||||
|
|
||||||
fmt.Println(x,y,z, nodeName)//XXX
|
|
||||||
if nodeName == "" {
|
if nodeName == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -93,17 +91,11 @@ func (r *MapBlockRenderer) Render(pos1, pos2 coords.MapBlockCoords) (*image.NRGB
|
|||||||
draw.Draw(img, rect, &image.Uniform{c}, image.ZP, draw.Src)
|
draw.Draw(img, rect, &image.Uniform{c}, image.ZP, draw.Src)
|
||||||
|
|
||||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
||||||
break
|
return img, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if foundBlocks == EXPECTED_BLOCKS_PER_FLAT_MAPBLOCK {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return img, nil
|
return img, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user