summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-07 10:38:00 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-07 10:38:00 +0000
commita609245253626fd1d8112d4b05959471723b7d8f (patch)
treefc9ec0ed252398bc3b2276626891275d63ee9adb /src/map/clif.c
parent236e19c49cbcbff7cde02e4ffeb1ee524d13ea07 (diff)
downloadhercules-a609245253626fd1d8112d4b05959471723b7d8f.tar.gz
hercules-a609245253626fd1d8112d4b05959471723b7d8f.tar.bz2
hercules-a609245253626fd1d8112d4b05959471723b7d8f.tar.xz
hercules-a609245253626fd1d8112d4b05959471723b7d8f.zip
* Added check on stackable items to 'checkweight' (bugreport:1569, bugreport:2756, bugreport 2994) [Inkfish]
* Fixed flee penalty wasn't applied for battleground and wouldn't be restored on map change [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13735 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7ced02555..1446755db 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6890,7 +6890,7 @@ void clif_wedding_effect(struct block_list *bl)
clif_send(buf, packet_len(0x1ea), bl, AREA);
}
/*==========================================
- * ‚ ‚È‚½‚Ɉ§‚¢‚½‚¢Žg—pŽž–¼‘O‹©‚Ñ
+ * ?‚È‚½‚Ɉ§‚¢‚½‚¢Žg—pŽž–¼‘O‹©‚Ñ
*------------------------------------------
void clif_callpartner(struct map_session_data *sd)
@@ -8012,11 +8012,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
}
if( map_flag_gvg(sd->bl.m) )
- {
clif_set0199(sd,3);
- if( battle_config.gvg_flee_penalty != 100 || battle_config.bg_flee_penalty != 100 )
- status_calc_bl(&sd->bl, SCB_FLEE); //Apply flee penalty
- }
// info about nearby objects
// must use foreachinarea (CIRCULAR_AREA interferes with foreachinrange)
@@ -8129,6 +8125,9 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
if( sd->state.changemap )
{// restore information that gets lost on map-change
+ if( battle_config.gvg_flee_penalty != 100 || battle_config.bg_flee_penalty != 100 )
+ status_calc_bl(&sd->bl, SCB_FLEE); //Refresh flee penalty
+
if( night_flag && map[sd->bl.m].flag.nightenabled )
{ //Display night.
if( !sd->state.night )