Skip to content

Commit

Permalink
treat outside same as walls
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Oct 10, 2023
1 parent e31adde commit a2b07bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sources/exportFloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ namespace
return uni(u8"\u2592");
case TileEnum::Outside:
return "~";
return uni(u8"\u2593");
default:
return "?";
}
Expand All @@ -66,17 +65,16 @@ namespace
case TileEnum::Monster:
return "monster";
case TileEnum::Wall:
case TileEnum::Outside: // treat outside same as walls
return "wall";
case TileEnum::Outside:
return "outside";
default:
CAGE_THROW_CRITICAL(Exception, "unknown tile enum");
}
}

std::string tileJson(Vec2i position, TileEnum type, const TileExtra &extra)
{
if (type == TileEnum::Empty || type == TileEnum::Outside)
if (type == TileEnum::Empty)
return {};

std::string json;
Expand Down

0 comments on commit a2b07bb

Please sign in to comment.