Fix up the concept of "None" tiles and objects
Replace with "Unknown" which is effectively an invalid value
This commit is contained in:
parent
305f64ec38
commit
7bdfa44fb6
10 changed files with 72 additions and 87 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue