diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-19 18:55:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-19 18:56:34 +0300 |
commit | 73defa73651a5e6f7683dc90ab465d19496b8cca (patch) | |
tree | 2b7e5ba8e7369e31812c5529aefcca8d5dfe333c /src/emap/pc.c | |
parent | 6eb6d10d8e1f4fa01d6a5bdc222149cd8552eb6a (diff) | |
download | plugin-73defa73651a5e6f7683dc90ab465d19496b8cca.tar.gz plugin-73defa73651a5e6f7683dc90ab465d19496b8cca.tar.bz2 plugin-73defa73651a5e6f7683dc90ab465d19496b8cca.tar.xz plugin-73defa73651a5e6f7683dc90ab465d19496b8cca.zip |
Add extended mount support.
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r-- | src/emap/pc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c index a099c3c..152fabe 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -19,6 +19,7 @@ #include "emap/clif.h" #include "emap/pc.h" +#include "emap/send.h" #include "emap/script.h" #include "emap/data/itemd.h" #include "emap/data/mapd.h" @@ -57,7 +58,11 @@ int epc_setregistry(TBL_PC *sd, int64 *reg, int *val) struct SessionExt *data = session_get_bysd(sd); if (!data) return 0; - data->mount = *val; + if (data->mount != *val) + { + data->mount = *val; + send_pc_info(&sd->bl, &sd->bl, SELF); + } } return 0; |