Wrong Tile Index being set in CMap::RegenerateForestTile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stratagus |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
The wrong Tile Index is being set in CMap::Regenerat
topMf.setTileIn
[...]
mf.setTileIndex
But getTopOneTreeTile() and getBottomOneTre
topMf.setTileIn
[...]
mf.setTileIndex
...and then, add the following function to tileset.cpp (I added it just below CTileset:
unsigned int CTileset:
{
const int n = tiles.size();
int solid = 0;
for (int i = 0; i < n;) {
const CTile &tile = tiles[i];
const CTileInfo &tileinfo = tile.tileinfo;
if (tileinfo.
i += 256;
} else {
if (tileinfo.
if (tile.flag & MapFieldForest) {
solid = i;
}
}
i += 16;
}
}
return solid;
}
...and of course, that function in tileset.h:
unsigned int getDefaultWoodT
...and that's all :)
This project was moved to https:/ /github. com/Wargus/ stratagus. All issues were migrated there.