Several bugfixes

- Fix light mask not rendering correctly
- Fix terrain-sourced lighting not being calculated on scenario load
- Fix light-removing items incorrectly applying their ability strength
- Fix smash patterns not affecting opaque tiles (such as mouldy walls)
- Fix monsters outside the light range not being rendered when fog is lifted
- Fix town timers not being cancelled when you leave town
- Fix non-existent outdoor wandering encounters sometimes triggering due to uninitialized data
- Hard-wrap some doc lines
This commit is contained in:
2015-06-04 21:50:08 -04:00
parent 5bcf220204
commit 80f95ba9ae
9 changed files with 40 additions and 20 deletions

View File

@@ -1727,6 +1727,8 @@ static void loadTownMapData(map_data&& data, int which, cScenario& scen) {
}
}
}
// Don't forget to set up lighting!
town.set_up_lights();
}
static void readSpecialNodesFromStream(std::istream& stream, std::vector<cSpecial>& nodes) {