* Reset the light amount on the tile. This is done before a light level recalculation. * @param layer Light is separated in 3 layers: Ambient, Static and Dynamic. */
| 400 | * @param layer Light is separated in 3 layers: Ambient, Static and Dynamic. |
| 401 | */ |
| 402 | void Tile::resetLight(int layer) |
| 403 | { |
| 404 | _light[layer] = 0; |
| 405 | _lastLight[layer] = _light[layer]; |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * Add the light amount on the tile. Only add light if the current light is lower. |
no outgoing calls
no test coverage detected