Fix up the concept of "None" tiles and objects

Replace with "Unknown" which is effectively an invalid value
This commit is contained in:
Marc Di Luzio 2020-07-19 12:33:11 +01:00
parent 305f64ec38
commit 7bdfa44fb6
10 changed files with 72 additions and 87 deletions

View file

@ -287,12 +287,10 @@ func InnerMain(command string, args ...string) error {
for i := 0; i < num; i++ {
t := response.Tiles[i+num*j]
o := response.Objects[i+num*j]
if o != roveapi.Object_ObjectNone {
if o != roveapi.Object_ObjectUnknown {
fmt.Printf("%c", atlas.ObjectGlyph(o))
} else if t != roveapi.Tile_TileNone {
fmt.Printf("%c", atlas.TileGlyph(t))
} else {
fmt.Printf(" ")
fmt.Printf("%c", atlas.TileGlyph(t))
}
}