ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/glue.C
Revision: 1.13
Committed: Tue May 6 16:55:25 2008 UTC (16 years ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_80, rel-2_6, rel-2_7, rel-2_72, rel-2_73, rel-2_71, rel-2_76, rel-2_77, rel-2_74, rel-2_75, rel-2_54, rel-2_55, rel-2_78, rel-2_79, rel-2_56, rel-2_61
Changes since 1.12: +1 -1 lines
Log Message:
update copyright

File Contents

# User Rev Content
1 elmex 1.1 /*
2 root 1.11 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 pippijn 1.7 *
4 root 1.13 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 root 1.9 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6     * Copyright (©) 1992,2007 Frank Tore Johansen
7 pippijn 1.7 *
8 root 1.11 * Deliantra is free software: you can redistribute it and/or modify
9 root 1.10 * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation, either version 3 of the License, or
11     * (at your option) any later version.
12 pippijn 1.7 *
13 root 1.10 * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17 pippijn 1.7 *
18 root 1.10 * You should have received a copy of the GNU General Public License
19     * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 root 1.9 *
21 root 1.11 * The authors can be reached via e-mail to <support@deliantra.net>
22 pippijn 1.7 */
23 elmex 1.1
24     #include <global.h>
25    
26     /*
27     * All this glue is currently needed to connect the game with the
28     * server. I'll try to make the library more able to "stand on it's
29     * own legs" later; not done in 5 minutes to separate two parts of
30     * the code which were connected, well, can you say "spagetti"?
31     *
32     * Glue has been cleaned, so this file is almost empty now :)
33     * Ryo 2005-07-15
34     */
35    
36 root 1.2 static const char *const fatalmsgs[80] = {
37 elmex 1.1 "Failed to allocate memory",
38     "Failed repeatedly to load maps",
39     "Hashtable for archetypes is too small",
40     "Too many errors"
41     };
42    
43     /*
44     * fatal() is meant to be called whenever a fatal signal is intercepted.
45     * It will call the emergency_save and the clean_tmp_files functions.
46     */
47 root 1.2 void
48     fatal (int err)
49     {
50 root 1.12 LOG (llevError, "Fatal: %s\n", fatalmsgs [err]);
51 root 1.5 cleanup (fatalmsgs[err], 1);
52 elmex 1.1 }
53 root 1.5