| 1531 | } |
| 1532 | |
| 1533 | bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson) { |
| 1534 | OptionalLights templateLights; |
| 1535 | LightsVector myLights = lights(); |
| 1536 | if (myLights.empty()) { |
| 1537 | if (OptionalSpaceType st = spaceType()) { |
| 1538 | myLights = st->lights(); |
| 1539 | } |
| 1540 | } |
| 1541 | if (!myLights.empty()) { |
| 1542 | templateLights = myLights[0]; |
| 1543 | } |
| 1544 | return setLightingPowerPerPerson(lightingPowerPerPerson, templateLights); |
| 1545 | } |
| 1546 | |
| 1547 | bool Space_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson, const boost::optional<Lights>& templateLights) { |
| 1548 | if (lightingPowerPerPerson < 0.0) { |
nothing calls this directly
no test coverage detected