1 | /* |
1 | /* |
2 | * static char *rcsid_login_c = |
2 | * static char *rcsid_login_c = |
3 | * "$Id: login.c,v 1.2 2006/03/16 21:08:20 root Exp $"; |
3 | * "$Id: login.c,v 1.3 2006/03/26 15:52:04 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 | |
… | |
… | |
277 | /* Eneq(@csd.uu.se): If we have an open container hide it. */ |
277 | /* Eneq(@csd.uu.se): If we have an open container hide it. */ |
278 | if (op->container) { |
278 | if (op->container) { |
279 | container=op->container; |
279 | container=op->container; |
280 | op->container=NULL; |
280 | op->container=NULL; |
281 | } |
281 | } |
|
|
282 | |
|
|
283 | execute_global_event (EVENT_PLAYER_SAVE, op, filename); |
282 | |
284 | |
283 | fprintf(fp,"password %s\n",pl->password); |
285 | fprintf(fp,"password %s\n",pl->password); |
284 | if (settings.set_title == TRUE) |
286 | if (settings.set_title == TRUE) |
285 | if(pl->own_title[0]!='\0') |
287 | if(pl->own_title[0]!='\0') |
286 | fprintf(fp,"title %s\n",pl->own_title); |
288 | fprintf(fp,"title %s\n",pl->own_title); |
… | |
… | |
399 | if (wiz) SET_FLAG(op,FLAG_WIZ); |
401 | if (wiz) SET_FLAG(op,FLAG_WIZ); |
400 | if(!flag) |
402 | if(!flag) |
401 | esrv_send_inventory(op, op); |
403 | esrv_send_inventory(op, op); |
402 | |
404 | |
403 | chmod(filename,SAVE_MODE); |
405 | chmod(filename,SAVE_MODE); |
404 | |
|
|
405 | execute_global_event (EVENT_PLAYER_SAVE, op, filename); |
|
|
406 | |
406 | |
407 | return 1; |
407 | return 1; |
408 | } |
408 | } |
409 | |
409 | |
410 | void copy_file(const char *filename, FILE *fpout) { |
410 | void copy_file(const char *filename, FILE *fpout) { |