summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 22:23:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 22:23:47 +0000
commit8c302479047fcd9f185bbbefcad621f47d8b9208 (patch)
treea9e0fcf1cf9613577d3ae1059766cbd4c81b4693
parentf996ce97b548a4919e3ecbf930279ed7e0214e47 (diff)
downloadhercules-8c302479047fcd9f185bbbefcad621f47d8b9208.tar.gz
hercules-8c302479047fcd9f185bbbefcad621f47d8b9208.tar.bz2
hercules-8c302479047fcd9f185bbbefcad621f47d8b9208.tar.xz
hercules-8c302479047fcd9f185bbbefcad621f47d8b9208.zip
- Fixed "wedding_ignore_palette: yes" not working when relogging with the gear already equipped.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7189 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/pc.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 8146ab25b..cfe5dd688 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/15
+ * Fixed "wedding_ignore_palette: yes" not working when relogging with the
+ gear already equipped. [Skotlex]
* Added blocking of the Kick skills when you are a Soul Linker. [Skotlex]
* Added enabling to turn off a kick-stance regardless of class. [Skotlex]
* Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas
diff --git a/src/map/pc.c b/src/map/pc.c
index b76856dcb..c3e533a21 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -634,11 +634,6 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t
pc_setinventorydata(sd);
pc_checkitem(sd);
- //Set here because we need the inventory data for weapon sprite parsing.
- status_set_viewdata(&sd->bl, sd->status.class_);
- status_change_init(&sd->bl);
- unit_dataset(&sd->bl);
-
if ((battle_config.atc_gmonly == 0 || pc_isGM(sd)) &&
(pc_isGM(sd) >= get_atcommand_level(AtCommand_Hide)))
sd->status.option &= (OPTION_MASK | OPTION_INVISIBLE);
@@ -646,6 +641,11 @@ int pc_authok(struct map_session_data *sd, int login_id2, time_t connect_until_t
sd->status.option &= OPTION_MASK;
sd->sc.option = sd->status.option; //This is the actual option used in battle.
+ //Set here because we need the inventory data for weapon sprite parsing.
+ status_set_viewdata(&sd->bl, sd->status.class_);
+ status_change_init(&sd->bl);
+ unit_dataset(&sd->bl);
+
sd->guild_x = -1;
sd->guild_y = -1;