Fixes to light-level detection code.

This commit is contained in:
Dmitry 2019-05-10 13:51:09 +03:00 committed by jeefo
commit fbd42b92d1
6 changed files with 96 additions and 57 deletions

View file

@ -1370,10 +1370,6 @@ void Waypoint::initVisibility (void) {
void Waypoint::initLightLevels (void) {
// this function get's the light level for each waypoin on the map
// @todo: re-enable when working on flashlights
illum.enableAnimation (false);
return;
#if 0
// no waypoints ? no light levels, and only one-time init
if (!m_numWaypoints || !cr::fzero (m_waypointLightLevel[0])) {
return;
@ -1385,7 +1381,6 @@ void Waypoint::initLightLevels (void) {
}
// disable lightstyle animations on finish (will be auto-enabled on mapchange)
illum.enableAnimation (false);
#endif
}
void Waypoint::initTypes (void) {