commit 7c97864a
Show protected areas
Changed files
| M | src/saland/Game.cpp before |
diff --git a/src/saland/Game.cpp b/src/saland/Game.cpp
index e59502e..afbdeda 100644
--- a/src/saland/Game.cpp
+++ b/src/saland/Game.cpp
@@ -211,6 +211,9 @@ static std::string GetLayerInfoForTile(const World& w, int x, int y) {
ret << "(" << tl.name << ":" << tile << ")";
}
}
+ if (w.tile_protected(x,y)) {
+ ret << "(protected)";
+ }
return ret.str();
}
@@ -273,6 +276,7 @@ void Game::Draw(SDL_Renderer* target) {
data->bottomField.SetText(buffer);
data->bottomField.Draw(target, 2, screen_height, sago::SagoTextField::Alignment::left, sago::SagoTextField::VerticalAlignment::bottom);
data->middleField.Draw(target, 1024/2, screen_height/4, sago::SagoTextField::Alignment::center, sago::SagoTextField::VerticalAlignment::bottom);
+ DrawRectYellow(target, 1024-70, 768-70, 52, 52);
DrawTile(target, globalData.spriteHolder.get(), data->gameRegion.world.tm, data->drawTile, 1024-60, 768-60);
if (data->consoleActive && data->console) {
data->console->Draw(target);