diff options
author | Susu <bruant.bastien@gmail.com> | 2013-07-04 12:20:51 +0200 |
---|---|---|
committer | Susu <bruant.bastien@gmail.com> | 2013-07-04 12:20:51 +0200 |
commit | b9889903e89bd4127c7503a512cfe215b9ccc740 (patch) | |
tree | 52eb8dffbdf4eb3cc3e8f9c8ce5da13bde188a71 /src/map/chrif.c | |
parent | 38ad0593dd7d6c3357c2a2219fe59122969c84b9 (diff) | |
download | hercules-b9889903e89bd4127c7503a512cfe215b9ccc740.tar.gz hercules-b9889903e89bd4127c7503a512cfe215b9ccc740.tar.bz2 hercules-b9889903e89bd4127c7503a512cfe215b9ccc740.tar.xz hercules-b9889903e89bd4127c7503a512cfe215b9ccc740.zip |
- Added interface iStatus (needed to renamed it because A LOT of variables are already called 'status')
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index c2067dbd1..0fd14cd28 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1184,7 +1184,7 @@ int chrif_save_scdata(struct map_session_data *sd) { //parses the sc_data of the continue; if (sc->data[i]->timer != INVALID_TIMER) { timer = iTimer->get_timer(sc->data[i]->timer); - if (timer == NULL || timer->func != status_change_timer || DIFF_TICK(timer->tick,tick) < 0) + if (timer == NULL || timer->func != iStatus->change_timer || DIFF_TICK(timer->tick,tick) < 0) continue; data.tick = DIFF_TICK(timer->tick,tick); //Duration that is left before ending. } else @@ -1237,7 +1237,7 @@ int chrif_load_scdata(int fd) { for (i = 0; i < count; i++) { data = (struct status_change_data*)RFIFOP(fd,14 + i*sizeof(struct status_change_data)); - status_change_start(&sd->bl, (sc_type)data->type, 10000, data->val1, data->val2, data->val3, data->val4, data->tick, 15); + iStatus->change_start(&sd->bl, (sc_type)data->type, 10000, data->val1, data->val2, data->val3, data->val4, data->tick, 15); } #endif |