1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_glue_c = |
|
|
4 | * "$Id: glue.C,v 1.2 2006/09/10 16:00:23 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
22 | |
16 | |
23 | 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 |
24 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | 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> |
28 | */ |
22 | */ |
29 | |
23 | |
30 | #include <global.h> |
24 | #include <global.h> |
31 | |
25 | |
32 | /* |
26 | /* |
… | |
… | |
52 | */ |
46 | */ |
53 | void |
47 | void |
54 | fatal (int err) |
48 | fatal (int err) |
55 | { |
49 | { |
56 | fprintf (logfile, "Fatal: %s\n", fatalmsgs[err]); |
50 | fprintf (logfile, "Fatal: %s\n", fatalmsgs[err]); |
57 | emergency_save (0); |
51 | cleanup (0); |
58 | clean_tmp_files (); |
|
|
59 | fprintf (logfile, "Exiting...\n"); |
|
|
60 | exit (err); |
|
|
61 | } |
52 | } |