version 1.113 | | version 1.114 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.113 2006/08/12 14:52:15 gros Exp $"; | | * "$Id: map.c,v 1.114 2006/08/12 19:38:22 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (!MAP_DIFFICULTY(m)) | | if (!MAP_DIFFICULTY(m)) |
MAP_DIFFICULTY(m)=calculate_difficulty(m); | | MAP_DIFFICULTY(m)=calculate_difficulty(m); |
set_map_reset_time(m); | | set_map_reset_time(m); |
| | |
| | /* Handle for map load event */ |
| | execute_global_event(EVENT_MAPLOAD, m); |
| | |
return (m); | | return (m); |
} | | } |
| | |
| | |
LOG(llevError,"Trying to free freed map.\n"); | | LOG(llevError,"Trying to free freed map.\n"); |
return; | | return; |
} | | } |
| | |
| | /* Handle for plugin map unload event. */ |
| | execute_global_event(EVENT_MAPUNLOAD, m); |
| | |
if (flag && m->spaces) free_all_objects(m); | | if (flag && m->spaces) free_all_objects(m); |
if (m->name) FREE_AND_CLEAR(m->name); | | if (m->name) FREE_AND_CLEAR(m->name); |
if (m->spaces) FREE_AND_CLEAR(m->spaces); | | if (m->spaces) FREE_AND_CLEAR(m->spaces); |