Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_glue_c = 00003 * "$Id: glue.c 11578 2009-02-23 22:02:27Z lalo $"; 00004 */ 00005 00006 /* 00007 CrossFire, A Multiplayer game for X-windows 00008 00009 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 00010 Copyright (C) 1992 Frank Tore Johansen 00011 00012 This program is free software; you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation; either version 2 of the License, or 00015 (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 00026 The authors can be reached via e-mail at crossfire-devel@real-time.com 00027 */ 00028 00029 #include <global.h> 00030 #include <sproto.h> 00031 00047 static const char *const fatalmsgs[80] = { 00048 "Failed to allocate memory", 00049 "Failed repeatedly to load maps", 00050 "Hashtable for archetypes is too small", 00051 }; 00052 00060 void fatal(int err) { 00061 fprintf(logfile, "Fatal: %s\n", fatalmsgs[err]); 00062 emergency_save(0); 00063 clean_tmp_files(); 00064 fprintf(logfile, "Exiting...\n"); 00065 exit(err); 00066 }