1 | /* |
1 | /* |
2 | * static char *rcsid_plugins_c = |
2 | * static char *rcsid_plugins_c = |
3 | * "$Id: plugins.c,v 1.2 2006/02/07 23:29:55 root Exp $"; |
3 | * "$Id: plugins.c,v 1.3 2006/02/08 03:46:15 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /*****************************************************************************/ |
6 | /*****************************************************************************/ |
7 | /* CrossFire, A Multiplayer game for X-windows */ |
7 | /* CrossFire, A Multiplayer game for X-windows */ |
8 | /* */ |
8 | /* */ |
… | |
… | |
247 | free_object(tmp); |
247 | free_object(tmp); |
248 | } else { |
248 | } else { |
249 | plugin = plugins_find_plugin(tmp->title); |
249 | plugin = plugins_find_plugin(tmp->title); |
250 | if (plugin == NULL) { |
250 | if (plugin == NULL) { |
251 | object *env = object_get_env_recursive(tmp); |
251 | object *env = object_get_env_recursive(tmp); |
252 | LOG(llevError, "The requested plugin doesn't exit: %s at %d/%d in map %s\n", tmp->title, env->x, env->y, env->map->name); |
252 | LOG(llevError, "The requested plugin doesn't exist: %s at %d/%d in map %s\n", tmp->title, env->x, env->y, env->map->name); |
253 | send_removed_object(tmp); |
253 | send_removed_object(tmp); |
254 | remove_ob(tmp); |
254 | remove_ob(tmp); |
255 | free_object(tmp); |
255 | free_object(tmp); |
256 | } else { |
256 | } else { |
257 | int rvt = 0; |
257 | int rvt = 0; |