| 25 | } |
| 26 | |
| 27 | void CTorch::SetColor(const Fcolor& color, int target) |
| 28 | { |
| 29 | switch (target) |
| 30 | { |
| 31 | case 0: |
| 32 | m_color = color; |
| 33 | light_render->set_color(m_color); |
| 34 | break; |
| 35 | case 1: |
| 36 | if (light_omni) |
| 37 | light_omni->set_color(color); |
| 38 | break; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | void CTorch::SetRGB(float r, float g, float b, int target) |
| 43 | { |
no test coverage detected