… | |
… | |
16 | |
16 | |
17 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | |
20 | |
21 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
22 | */ |
22 | */ |
23 | |
23 | |
24 | #include <global.h> |
24 | #include <global.h> |
25 | #include <object.h> |
25 | #include <object.h> |
26 | #include <tod.h> |
26 | #include <tod.h> |
… | |
… | |
1100 | |
1100 | |
1101 | void |
1101 | void |
1102 | process_events (mapstruct *map) |
1102 | process_events (mapstruct *map) |
1103 | { |
1103 | { |
1104 | object *op; |
1104 | object *op; |
1105 | object *marker = get_object (); |
|
|
1106 | tag_t tag; |
1105 | tag_t tag; |
|
|
1106 | |
|
|
1107 | static object *marker; |
|
|
1108 | |
|
|
1109 | if (!marker) |
|
|
1110 | marker = get_object (); |
1107 | |
1111 | |
1108 | process_players1 (map); |
1112 | process_players1 (map); |
1109 | |
1113 | |
1110 | marker->active_next = active_objects; |
1114 | marker->active_next = active_objects; |
1111 | |
1115 | |
… | |
… | |
1229 | marker->active_prev->active_next = NULL; |
1233 | marker->active_prev->active_next = NULL; |
1230 | else |
1234 | else |
1231 | active_objects = NULL; |
1235 | active_objects = NULL; |
1232 | |
1236 | |
1233 | process_players2 (map); |
1237 | process_players2 (map); |
1234 | |
|
|
1235 | free_object (marker); |
|
|
1236 | } |
1238 | } |
1237 | |
1239 | |
1238 | void |
1240 | void |
1239 | clean_tmp_files (void) |
1241 | clean_tmp_files (void) |
1240 | { |
1242 | { |