Disable light-level code as it's not used currently.
This commit is contained in:
parent
7ebf1b6ef4
commit
117db06048
3 changed files with 8 additions and 3 deletions
|
|
@ -1370,17 +1370,22 @@ 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;
|
||||
}
|
||||
engine.print ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
|
||||
|
||||
// update light levels for all waypoints
|
||||
for (int i = 0; i < m_numWaypoints; i++) {
|
||||
m_waypointLightLevel[i] = illum.getLightLevel (m_paths[i]->origin);
|
||||
}
|
||||
// disable lightstyle animations on finish (will be auto-enabled on mapchange)
|
||||
illum.enableAnimation (false);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Waypoint::initTypes (void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue