Permalink
Browse files

remove compiler warnings.

  • Loading branch information...
1 parent 1c3ab60 commit 6cc0899ceaf569ffc20054e722aa81a87bcd3b1b @stefanbeller stefanbeller committed Apr 2, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/FileParser.cpp
  2. +1 −1 src/MapRenderer.cpp
View
@@ -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
@@ -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);

0 comments on commit 6cc0899

Please sign in to comment.