diff options
author | shennetsind <ind@henn.et> | 2013-01-27 09:36:29 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-01-27 09:36:29 -0200 |
commit | cf690d4206ea3c0e99d7f7a31951c5fce623a43f (patch) | |
tree | ba7b674249ebdcd050128a4ca1f06ee00599abd0 /src | |
parent | 234bbe24ae5f804c96243a8399048a582e56a864 (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/pc.c | 5 |
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; |