Skip to content
This repository
Browse code

remove compiler warnings.

  • Loading branch information...
commit 6cc0899ceaf569ffc20054e722aa81a87bcd3b1b 1 parent 1c3ab60
stefanbeller stefanbeller authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 src/FileParser.cpp
  2. +1 1  src/MapRenderer.cpp
4 src/FileParser.cpp
@@ -33,8 +33,8 @@ FileParser::FileParser()
33 33 , val("")
34 34 {}
35 35
36   -bool FileParser::open(const string& filename, const string &errormessage) {
37   - this->filename = filename;
  36 +bool FileParser::open(const string& _filename, const string &errormessage) {
  37 + this->filename = _filename;
38 38 infile.open(filename.c_str(), ios::in);
39 39 bool ret = infile.is_open();
40 40 if (!ret && !errormessage.empty())
2  src/MapRenderer.cpp
@@ -433,7 +433,7 @@ void MapRenderer::loadEventComponent(FileParser &infile)
433 433 e->x = toInt(infile.nextValue()) * UNITS_PER_TILE + UNITS_PER_TILE/2;
434 434 e->y = toInt(infile.nextValue()) * UNITS_PER_TILE + UNITS_PER_TILE/2;
435 435
436   - string chance = infile.nextValue();
  436 + chance = infile.nextValue();
437 437 if (chance == "fixed") e->z = 0;
438 438 else e->z = toInt(chance);
439 439

0 comments on commit 6cc0899

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