1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
103 | delete obj; |
103 | delete obj; |
104 | } |
104 | } |
105 | } |
105 | } |
106 | } |
106 | } |
107 | |
107 | |
108 | /* |
|
|
109 | * Dumps all friendly objects. |
|
|
110 | */ |
|
|
111 | void |
|
|
112 | dump_friendly_objects (void) |
|
|
113 | { |
|
|
114 | objectlink *ol; |
|
|
115 | |
|
|
116 | for (ol = first_friendly_object; ol; ol = ol->next) |
|
|
117 | LOG (llevError, "%s (%d)\n", &ol->ob->name, ol->ob->count); |
|
|
118 | } |
|
|
119 | |
|
|
120 | /* New function, MSW 2000-1-14 |
108 | /* New function, MSW 2000-1-14 |
121 | * It traverses the friendly list removing objects that should not be here |
109 | * It traverses the friendly list removing objects that should not be here |
122 | * (ie, do not have friendly flag set, freed, etc) |
110 | * (ie, do not have friendly flag set, freed, etc) |
123 | */ |
111 | */ |
124 | void |
112 | void |