diff options
Diffstat (limited to 'source/game/StarObjectDatabase.cpp')
-rw-r--r-- | source/game/StarObjectDatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarObjectDatabase.cpp b/source/game/StarObjectDatabase.cpp index 4c9a968..d886be8 100644 --- a/source/game/StarObjectDatabase.cpp +++ b/source/game/StarObjectDatabase.cpp @@ -32,9 +32,9 @@ bool ObjectOrientation::placementValid(World const* world, Vec2I const& position if (!world) return false; - for (auto space : spaces) { + for (Vec2I space : spaces) { space += position; - if (world->tileIsOccupied(space, TileLayer::Foreground) || world->isTileProtected(space)) + if (world->tileIsOccupied(space, TileLayer::Foreground, false, true) || world->isTileProtected(space)) return false; } return true; |