1 | /* |
1 | /* |
2 | * static char *rcsid_friend_c = |
2 | * static char *rcsid_friend_c = |
3 | * "$Id: friend.c,v 1.1.1.2 2006/02/22 18:01:18 elmex Exp $"; |
3 | * "$Id: friend.c,v 1.2 2006/08/13 17:16:00 elmex dead $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
138 | } |
138 | } |
139 | |
139 | |
140 | /* Checks if the given object is already in the friendly list or not |
140 | /* Checks if the given object is already in the friendly list or not |
141 | * Lauwenmark - 31/07/05 |
141 | * Lauwenmark - 31/07/05 |
142 | */ |
142 | */ |
143 | int is_friendly(const object* op) |
143 | int is_friendly(object* op) |
144 | { |
144 | { |
145 | objectlink *ol; |
145 | objectlink *ol; |
146 | |
146 | |
147 | for(ol=first_friendly_object;ol!=NULL;ol=ol->next) |
147 | for(ol=first_friendly_object;ol!=NULL;ol=ol->next) |
148 | if (ol->ob == op) |
148 | if (ol->ob == op) |