… | |
… | |
2310 | /** |
2310 | /** |
2311 | * This function will try to apply a lighter and in case no lighter |
2311 | * This function will try to apply a lighter and in case no lighter |
2312 | * is specified it will try to find a lighter in the players inventory, |
2312 | * is specified it will try to find a lighter in the players inventory, |
2313 | * and inform him about this requirement. |
2313 | * and inform him about this requirement. |
2314 | * |
2314 | * |
2315 | * who - the player |
2315 | * who - the player |
2316 | * op - the item we want to light |
2316 | * op - the item we want to light |
2317 | * ligher - the lighter or 0 if a lighter has yet to be found |
2317 | * lighter - the lighter or 0 if a lighter has yet to be found |
2318 | */ |
2318 | */ |
2319 | object * |
2319 | object * |
2320 | auto_apply_lighter (object *who, object *op, object *lighter) |
2320 | auto_apply_lighter (object *who, object *op, object *lighter) |
2321 | { |
2321 | { |
2322 | if (lighter == 0) |
2322 | if (lighter == 0) |