| 360 | } |
| 361 | } |
| 362 | void lightSource::combine(const lightSource& other) |
| 363 | { |
| 364 | power=blend(power,other.power); |
| 365 | radius=std::max(other.radius,radius);//hack... but who cares |
| 366 | } |
| 367 | bool lightingEngineViewscreen::addLight(int tileId,const lightSource& light) |
| 368 | { |
| 369 | bool wasLight=lights[tileId].radius>0; |