… | |
… | |
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 | * lighter - 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 | static 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) |
2323 | { |
2323 | { |
2324 | for (object *tmp = who->inv; tmp; tmp = tmp->below) |
2324 | for (object *tmp = who->inv; tmp; tmp = tmp->below) |