Skip to content
Browse files

MapRenderer: Make compile again in Mingw

  • Loading branch information...
1 parent aec597e commit 1c3ab607bb0bb3ee8e77933264e9b098499fe8c8 @stefanbeller stefanbeller committed Apr 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/MapRenderer.cpp
View
4 src/MapRenderer.cpp
@@ -748,7 +748,7 @@ void MapRenderer::renderIsoLayer(SDL_Surface *wheretorender, Point offset, const
// lower right (south east) corner is covered by (j+i-w+1)
// lower left (south west) corner is caught by having 0 in there, so j>0
- const int_fast16_t j_end = std::max((j+i-w+1), std::max(j - max_tiles_width, static_cast<int_fast16_t>(0)));
+ const int_fast16_t j_end = std::max(static_cast<int_fast16_t>(j+i-w+1), std::max(static_cast<int_fast16_t>(j - max_tiles_width), static_cast<int_fast16_t>(0)));
Point p = map_to_screen(i * UNITS_PER_TILE, j * UNITS_PER_TILE, shakycam.x, shakycam.y);
p = center_tile(p);
@@ -815,7 +815,7 @@ void MapRenderer::renderIsoFrontObjects(vector<Renderable> &r) {
if (d >= 0) {
j -= d; tiles_width += d; i += d;
}
- const int_fast16_t j_end = std::max((j+i-w+1), std::max(j - max_tiles_width, static_cast<int_fast16_t>(0)));
+ const int_fast16_t j_end = std::max(static_cast<int_fast16_t>(j+i-w+1), std::max(static_cast<int_fast16_t>(j - max_tiles_width), static_cast<int_fast16_t>(0)));
// draw one horizontal line
Point p = map_to_screen(i * UNITS_PER_TILE, j * UNITS_PER_TILE, shakycam.x, shakycam.y);

0 comments on commit 1c3ab60

Please sign in to comment.
Something went wrong with that request. Please try again.