1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
45 | * It will call the emergency_save and the clean_tmp_files functions. |
45 | * It will call the emergency_save and the clean_tmp_files functions. |
46 | */ |
46 | */ |
47 | void |
47 | void |
48 | fatal (int err) |
48 | fatal (int err) |
49 | { |
49 | { |
50 | fprintf (logfile, "Fatal: %s\n", fatalmsgs[err]); |
50 | LOG (llevError, "Fatal: %s\n", fatalmsgs [err]); |
51 | cleanup (fatalmsgs[err], 1); |
51 | cleanup (fatalmsgs[err], 1); |
52 | } |
52 | } |
53 | |
53 | |