| 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; |
| 370 | lights[tileId].combine(light); |
| 371 | if(light.flicker) |
| 372 | lights[tileId].flicker=true; |
| 373 | return wasLight; |
| 374 | } |
| 375 | void lightingEngineViewscreen::addOclusion(int tileId,const rgbf& c,float thickness) |
| 376 | { |
| 377 | if(thickness > 0.999 && thickness < 1.001) |