| 260 | } |
| 261 | |
| 262 | IC void CObjectHandler::switch_torch(CInventoryItem* inventory_item, bool value) |
| 263 | { |
| 264 | CTorch* torch = smart_cast<CTorch*>(inventory_item); |
| 265 | if (torch && attached(torch) && planner().object().g_Alive()) |
| 266 | torch->Switch(value); |
| 267 | } |
| 268 | |
| 269 | void CObjectHandler::attach(CInventoryItem* inventory_item) |
| 270 | { |