Fix in asciimapsource

This commit is contained in:
King_DuckZ 2014-12-29 16:14:36 +01:00
parent 931acf3293
commit d5c199f3b9
4 changed files with 13 additions and 91 deletions

View file

@ -60,7 +60,7 @@ namespace dkh {
//Only look at the front. Besides a bug in spirit makes the other counts
//invalid, see
//http://boost.2283326.n4.nabble.com/Possible-bug-in-line-pos-iterator-td4636592.html
m_width = grammar.lengths.front();
m_height = m_wholedata.size() / m_width;
m_mapSize.x() = grammar.lengths.front();
m_mapSize.y() = m_wholedata.size() / m_mapSize.x();
}
} //namespace dk
} //namespace dkh