if (amt > 0) current_alpha = std::min(current_alpha + amt, alpha);
if (amt < 0) current_alpha = std::max(current_alpha + amt, alpha);
}
+ if (current_alpha < 0.25) set_solid(false);
}
// if we have a path to follow, follow it
width = new_width;
}
+void
+TileMap::set_solid(bool solid)
+{
+ this->solid = solid;
+}
+
const Tile*
TileMap::get_tile(int x, int y) const
{