summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorSusu <bruant.bastien@gmail.com>2013-07-04 12:20:51 +0200
committerSusu <bruant.bastien@gmail.com>2013-07-04 12:20:51 +0200
commitb9889903e89bd4127c7503a512cfe215b9ccc740 (patch)
tree52eb8dffbdf4eb3cc3e8f9c8ce5da13bde188a71 /src/map/map.c
parent38ad0593dd7d6c3357c2a2219fe59122969c84b9 (diff)
downloadhercules-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/map.c')
-rw-r--r--src/map/map.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 10d413676..2770a8af7 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -357,7 +357,7 @@ int map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick)
//TODO: Perhaps some outs of bounds checking should be placed here?
if (bl->type&BL_CHAR) {
- sc = status_get_sc(bl);
+ sc = iStatus->get_sc(bl);
skill->unit_move(bl,tick,2);
status_change_end(bl, SC_RG_CCONFINE_M, INVALID_TIMER);
@@ -1672,7 +1672,7 @@ int map_quit(struct map_session_data *sd) {
if( sd->sc.count ) {
//Status that are not saved...
for(i=0; i < SC_MAX; i++){
- if ( status_get_sc_type(i)&SC_NO_SAVE ){
+ if ( iStatus->get_sc_type(i)&SC_NO_SAVE ){
if ( !sd->sc.data[i] )
continue;
switch( i ){
@@ -5043,7 +5043,7 @@ void do_final(void)
homun->final();
atcommand->final_msg();
skill->final();
- do_final_status();
+ iStatus->do_final_status();
do_final_unit();
do_final_battleground();
do_final_duel();
@@ -5254,6 +5254,7 @@ void map_hp_symbols(void) {
HPM->share(party,"party");
HPM->share(storage,"storage");
HPM->share(trade,"trade");
+ HPM->share(iStatus,"iStatus");
/* partial */
HPM->share(mapit,"mapit");
/* sql link */
@@ -5289,6 +5290,7 @@ void load_defaults(void) {
party_defaults();
storage_defaults();
trade_defaults();
+ status_defaults();
}
int do_init(int argc, char *argv[])
{
@@ -5476,7 +5478,7 @@ int do_init(int argc, char *argv[])
read_map_zone_db();/* read after item and skill initalization */
do_init_mob();
pc->do_init_pc();
- do_init_status();
+ iStatus->do_init_status();
party->do_init_party();
guild->init();
storage->init();