… | |
… | |
139 | } |
139 | } |
140 | |
140 | |
141 | /* Checks if the given object is already in the friendly list or not |
141 | /* Checks if the given object is already in the friendly list or not |
142 | * Lauwenmark - 31/07/05 |
142 | * Lauwenmark - 31/07/05 |
143 | */ |
143 | */ |
144 | int |
144 | static int |
145 | is_friendly (const object *op) |
145 | is_friendly (const object *op) |
146 | { |
146 | { |
147 | objectlink *ol; |
|
|
148 | |
|
|
149 | for (ol = first_friendly_object; ol; ol = ol->next) |
147 | for (objectlink *ol = first_friendly_object; ol; ol = ol->next) |
150 | if (ol->ob == op) |
148 | if (ol->ob == op) |
151 | return 1; |
149 | return 1; |
152 | |
150 | |
153 | return 0; |
151 | return 0; |
154 | } |
152 | } |