From 45edb97481f5bf680311121db4b33bb00a07a081 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 11 Sep 2007 17:25:49 +0000 Subject: - Corrected /invite letting you invite people even if you are not the party leader. - Added some reply messages when you try /invite and a. the character is not found or b. you are not the party leader. - Added a check so that the 'save on crash' routine won't get stuck if it happens to crash while attempting to save characters. - People in chat-rooms no longer receive @main messages. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11179 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index fcb1a58ac..7c1ba6c4c 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3227,7 +3227,13 @@ static int map_abort_sub(DBKey key,void * data,va_list ap) //------------------------------ void do_abort(void) { + static int run = 0; //Save all characters and then flush the inter-connection. + if (run) { + ShowFatalError("Server has crashed while trying to save characters. Character data can't be saved!\n"); + return; + } + run = 1; if (!chrif_isconnected()) { if (pc_db->size(pc_db)) -- cgit v1.2.3-60-g2f50