Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove compiler warnings.

  • Loading branch information...
commit 6cc0899ceaf569ffc20054e722aa81a87bcd3b1b 1 parent 1c3ab60
@stefanbeller stefanbeller authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/FileParser.cpp
  2. +1 −1  src/MapRenderer.cpp
View
4 src/FileParser.cpp
@@ -33,8 +33,8 @@ FileParser::FileParser()
, val("")
{}
-bool FileParser::open(const string& filename, const string &errormessage) {
- this->filename = filename;
+bool FileParser::open(const string& _filename, const string &errormessage) {
+ this->filename = _filename;
infile.open(filename.c_str(), ios::in);
bool ret = infile.is_open();
if (!ret && !errormessage.empty())
View
2  src/MapRenderer.cpp
@@ -433,7 +433,7 @@ void MapRenderer::loadEventComponent(FileParser &infile)
e->x = toInt(infile.nextValue()) * UNITS_PER_TILE + UNITS_PER_TILE/2;
e->y = toInt(infile.nextValue()) * UNITS_PER_TILE + UNITS_PER_TILE/2;
- string chance = infile.nextValue();
+ chance = infile.nextValue();
if (chance == "fixed") e->z = 0;
else e->z = toInt(chance);
Please sign in to comment.
Something went wrong with that request. Please try again.