Marching squares: borders are solid.

master
dmatetelki 10 years ago
parent c2805b5cd8
commit 38e0d49417

@ -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);
}

Loading…
Cancel
Save