summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-01-27 09:36:29 -0200
committershennetsind <ind@henn.et>2013-01-27 09:36:29 -0200
commitcf690d4206ea3c0e99d7f7a31951c5fce623a43f (patch)
treeba7b674249ebdcd050128a4ca1f06ee00599abd0 /src/map/pc.c
parent234bbe24ae5f804c96243a8399048a582e56a864 (diff)
downloadhercules-cf690d4206ea3c0e99d7f7a31951c5fce623a43f.tar.gz
hercules-cf690d4206ea3c0e99d7f7a31951c5fce623a43f.tar.bz2
hercules-cf690d4206ea3c0e99d7f7a31951c5fce623a43f.tar.xz
hercules-cf690d4206ea3c0e99d7f7a31951c5fce623a43f.zip
Fixed Bug #6689
Star Gladiator's map data is now cleared upon job chaging outside star gladiator lineage, that way the database will no longer store these vars when they're not used Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index f06d48779..89925f8f2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7229,6 +7229,11 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
}
}
+ if( (sd->class_&MAPID_UPPERMASK) == MAPID_STAR_GLADIATOR && (b_class&MAPID_UPPERMASK) != MAPID_STAR_GLADIATOR) {
+ /* going off star glad lineage, reset feel to not store no-longer-used vars in the database */
+ pc_resetfeel(sd);
+ }
+
sd->status.class_ = job;
fame_flag = pc_famerank(sd->status.char_id,sd->class_&MAPID_UPPERMASK);
sd->class_ = (unsigned short)b_class;