summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-11 17:25:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-11 17:25:49 +0000
commit45edb97481f5bf680311121db4b33bb00a07a081 (patch)
treedd7dfaa95e786340520fe9161a9fcf0aa87162d4 /src/map/map.c
parentb57366763f2d0900404ea045dd1208f077c0c2c3 (diff)
downloadhercules-45edb97481f5bf680311121db4b33bb00a07a081.tar.gz
hercules-45edb97481f5bf680311121db4b33bb00a07a081.tar.bz2
hercules-45edb97481f5bf680311121db4b33bb00a07a081.tar.xz
hercules-45edb97481f5bf680311121db4b33bb00a07a081.zip
- 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
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 6 insertions, 0 deletions
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))