summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-16 04:20:55 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-16 04:20:55 +0000
commita2c41ae05a34029adf70f7e11f47c4e4ba56566b (patch)
treeead4aace769121712737e5d20aa109f66245c828 /src/map/clif.c
parentec576ee55559c2375d240b16d07ca860acdeb8bd (diff)
downloadhercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.gz
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.bz2
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.tar.xz
hercules-a2c41ae05a34029adf70f7e11f47c4e4ba56566b.zip
Added 'BaseJob' const and 'indoors' mapflag
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@209 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 624e00d73..0622f6108 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7298,6 +7298,15 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
if(battle_config.muting_players && sd->status.manner < 0)
skill_status_change_start(&sd->bl,SC_NOCHAT,0,0,0,0,0,0);
+ if (night_flag) {
+ // night - when changing from indoors to outdoors - celest
+ if (!map[sd->bl.m].flag.indoors && sd->opt2 != STATE_BLIND)
+ sd->opt2 |= STATE_BLIND;
+ // changing from outdoors to indoors
+ else if (map[sd->bl.m].flag.indoors && sd->opt2 == STATE_BLIND)
+ sd->opt2 &= ~STATE_BLIND;
+ }
+
// option
clif_changeoption(&sd->bl);
if(sd->sc_data[SC_TRICKDEAD].timer != -1)