From d60786b5da5e0f8c8d66405466543cee0c83f03c Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Fri, 26 Feb 2016 07:41:17 -0500 Subject: [PATCH] Do not show cell markers for interior cells --- apps/opencs/view/render/cell.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/render/cell.cpp b/apps/opencs/view/render/cell.cpp index e7b135891..641aeb088 100644 --- a/apps/opencs/view/render/cell.cpp +++ b/apps/opencs/view/render/cell.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include "../../model/world/idtable.hpp" @@ -308,12 +309,19 @@ void CSVRender::Cell::setCellArrows (int mask) void CSVRender::Cell::setCellMarker() { bool cellExists = false; + bool isInteriorCell = false; + int cellIndex = mData.getCells().searchId(mId); if (cellIndex > -1) { - cellExists = !mData.getCells().getRecord(cellIndex).isDeleted(); + const CSMWorld::Record& cellRecord = mData.getCells().getRecord(cellIndex); + cellExists = !cellRecord.isDeleted(); + isInteriorCell = cellRecord.get().mData.mFlags & ESM::Cell::Interior; + } + + if (!isInteriorCell) { + mCellMarker.reset(new CellMarker(mCellNode, mCoordinates, cellExists)); } - mCellMarker.reset(new CellMarker(mCellNode, mCoordinates, cellExists)); } CSMWorld::CellCoordinates CSVRender::Cell::getCoordinates() const