From 38e0d494171447ab85a93829b2c932a6cca7f2ad Mon Sep 17 00:00:00 2001 From: dmatetelki Date: Tue, 2 Jun 2015 12:26:12 +0200 Subject: [PATCH] Marching squares: borders are solid. --- lib/qtgraph/marching_squares.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/qtgraph/marching_squares.cpp b/lib/qtgraph/marching_squares.cpp index be6b40e..d34f23e 100644 --- a/lib/qtgraph/marching_squares.cpp +++ b/lib/qtgraph/marching_squares.cpp @@ -30,8 +30,8 @@ void MarchingSquares::ReadImage(const std::string& filename) else c = DESTROYABLE; // everything else // mark borders as SOLID, such that the entities in the world cannot fall off - // if (x == 0 || x == width_ - 1 || y == 0 || y == height_ - 1) - // c = SOLID; + if (x == 0 || x == width_ - 1 || y == 0 || y == height_ - 1) + c = SOLID; cells_.push_back(c); }