summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-27 10:36:30 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-27 10:36:30 +0000
commitb3574d7f0a8565ecc46bc6ba8d128688156b6331 (patch)
tree1aff9636ac994ff3bece032421cc23a6d92efd1f /src/map/pc.c
parent249b427c3ce9b90cbec7aa50e3b04100f3f95d1c (diff)
downloadhercules-b3574d7f0a8565ecc46bc6ba8d128688156b6331.tar.gz
hercules-b3574d7f0a8565ecc46bc6ba8d128688156b6331.tar.bz2
hercules-b3574d7f0a8565ecc46bc6ba8d128688156b6331.tar.xz
hercules-b3574d7f0a8565ecc46bc6ba8d128688156b6331.zip
* Added use dynamic allocation when loading the msg_table
* Refresh the client when day comes to get rid of the night effect * Changed @refresh to fake map loading, but without teleporting side effect * Updated SQL file for the item_db git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1307 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 768098afb..7fb2bb42b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7014,8 +7014,12 @@ int map_day_timer(int tid, unsigned int tick, int id, int data) { // by [yor]
night_flag = 0; // 0=day, 1=night [Yor]
for(i = 0; i < fd_max; i++) {
if (session[i] && (pl_sd = (struct map_session_data *) session[i]->session_data) && pl_sd->state.auth) {
- pl_sd->opt2 &= ~STATE_BLIND;
- clif_changeoption(&pl_sd->bl);
+ if (battle_config.night_darkness_level > 0)
+ clif_refresh (pl_sd);
+ else {
+ pl_sd->opt2 &= ~STATE_BLIND;
+ clif_changeoption(&pl_sd->bl);
+ }
clif_wis_message(pl_sd->fd, wisp_server_name, tmpstr, strlen(tmpstr)+1);
}
}