Menu

#1 Crash caused in SubspaceMap.cpp

open
nobody
None
8
2009-04-03
2009-04-03
Hakaku
No

void SubspaceMap::drawTileMap(const SubspaceTileMap& map) const
{
SubspaceTileMap::const_iterator i, j;
SubspaceTileMap::const_iterator startCol, startRow;
int endRowIndex, endColIndex;

startRow = map.lower_bound(toLinear(drawX_, drawY_));
endRowIndex = toLinear(drawXEnd_, drawYEnd_);
for(j = startRow; (*j).first < endRowIndex && j != map.end(); )
{
startCol = j;
endColIndex = toLinear(drawXEnd_, (*j).second.y_);
for(i = startCol; (*i).first < endColIndex && i != map.end(); ++i)
{
drawTile((*i).second);
}
j = map.lower_bound(toLinear(drawX_, (*j).second.y_+1));
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.