ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/glue.C
Revision: 1.9
Committed: Mon May 28 21:21:40 2007 UTC (17 years ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.8: +17 -17 lines
Log Message:
update copyrights in common/*.C and util/*.C

File Contents

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