Fixed compile error in release mode.

This commit is contained in:
Felix Ableitner 2013-09-01 23:40:08 +02:00
parent fdf20428b0
commit 86b14c7e3c
2 changed files with 4 additions and 4 deletions

View file

@ -230,14 +230,14 @@ Pathfinder::getArea(const Vector2f& point) const {
/**
* Draws areas.
*/
#ifndef RELEASE
void
Pathfinder::draw(sf::RenderTarget& target, sf::RenderStates states) const {
#ifndef RELEASE
for (auto& area : mAreas) {
sf::RectangleShape rect(Vector2f(area.area.width, area.area.height));
rect.setPosition(Vector2f(area.area.left, area.area.top));
rect.setFillColor(sf::Color(area.area.width * 30, 127, 0, 96));
target.draw(rect);
}
}
#endif /* RELEASE */
}

View file

@ -355,9 +355,9 @@ Generator::findClosestFloor(const Vector2i& start) const {
*
* mPaths is only required for this function.
*/
#ifndef RELEASE
void
Generator::draw(sf::RenderTarget& target, sf::RenderStates states) const {
#ifndef RELEASE
for (auto& p : mPaths) {
for (auto&q : p) {
sf::RectangleShape rect(Vector2f(Tile::TILE_SIZE));
@ -366,5 +366,5 @@ Generator::draw(sf::RenderTarget& target, sf::RenderStates states) const {
target.draw(rect);
}
}
}
#endif /* RELEASE */
}