1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

- bugfixing:

-- fixed #942 and #898
-- removed dublicated code in dwelling loading, #900 is fixed
-- fixed roads rendering for #895
This commit is contained in:
Ivan Savenko
2012-05-11 19:03:40 +00:00
parent b597171f91
commit 46f48f0676
8 changed files with 126 additions and 160 deletions

View File

@ -155,11 +155,6 @@ static void readBankLevel(const JsonNode &level, BankConfig &bc)
void CObjectHandler::loadObjects()
{
tlog5 << "\t\tReading cregens \n";
cregens.resize(110); //TODO: hardcoded value - change
for(size_t i=0; i < cregens.size(); ++i)
{
cregens[i]=-1;
}
const JsonNode config(GameConstants::DATA_DIR + "/config/dwellings.json");
BOOST_FOREACH(const JsonNode &dwelling, config["dwellings"].Vector())