Use map rect

This commit is contained in:
2020-05-31 14:58:46 +01:00
parent 14fdab72a0
commit cf58be6a20
2 changed files with 7 additions and 9 deletions

View File

@@ -127,13 +127,14 @@ func loadMapsFrom(part string) {
log.Printf("Maps in %s:", mapsPath)
for key, gameMap := range gameMaps {
rect := gameMap.Rect()
hdr := gameMap.Header
fmt.Printf(
" * `%s`: IsCampaignMap=%v W=%v:%v L=%v:%v SetName=%s\n",
key,
hdr.IsCampaignMap,
hdr.MinWidth, hdr.MaxWidth,
hdr.MinLength, hdr.MaxLength,
rect.Min.X, rect.Max.X,
rect.Min.Y, rect.Max.Y,
string(hdr.SetName[:]),
)
}