From efeb89f34eccad6613e97c711fd5ef561ed0e4e3 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> Date: Tue, 1 Feb 2005 10:46:03 +0000 Subject: * Added Karma and Manner to const.txt * Delete players' ID from id_db when kicking everyone from the map-server due to char disconnection -- Fixes an odd crash with lazy mob AI git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1017 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 1 + src/map/pc.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/map/map.c b/src/map/map.c index 50f44c327..c214f16a2 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1094,6 +1094,7 @@ int map_quit(struct map_session_data *sd) { } strdb_erase(nick_db,sd->status.name); numdb_erase(charid_db,sd->status.char_id); + numdb_erase(id_db,sd->bl.id); free(sd->reg); free(sd->regstr); diff --git a/src/map/pc.c b/src/map/pc.c index 6026da033..e98df2a02 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4748,6 +4748,12 @@ int pc_readparam(struct map_session_data *sd,int type) case SP_LUK: val= sd->status.luk; break; + case SP_KARMA: // celest + val = sd->status.karma; + break; + case SP_MANNER: + val = sd->status.manner; + break; case SP_FAME: val= sd->fame; break; @@ -4877,6 +4883,12 @@ int pc_setparam(struct map_session_data *sd,int type,int val) case SP_LUK: sd->status.luk = val; break; + case SP_KARMA: + sd->status.karma = val; + break; + case SP_MANNER: + sd->status.manner = val; + break; case SP_FAME: sd->fame = val; break; -- cgit v1.2.3-70-g09d2