diff options
author | Haru <haru@dotalux.com> | 2013-09-27 05:30:37 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-27 05:30:37 +0200 |
commit | b89f58edd8b368e2548ace86f06354bd6ea1c8d2 (patch) | |
tree | 2f30953a986a2690c333370d99232a43853a1781 /src/map/vending.c | |
parent | 17bc1fab375f8ecc951fbba058a346b1460bf783 (diff) | |
download | hercules-b89f58edd8b368e2548ace86f06354bd6ea1c8d2.tar.gz hercules-b89f58edd8b368e2548ace86f06354bd6ea1c8d2.tar.bz2 hercules-b89f58edd8b368e2548ace86f06354bd6ea1c8d2.tar.xz hercules-b89f58edd8b368e2548ace86f06354bd6ea1c8d2.zip |
Renamed iMap interface to map
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index 32e084a87..7d6d02cfb 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -48,7 +48,7 @@ void vending_vendinglistreq(struct map_session_data* sd, unsigned int id) { struct map_session_data* vsd; nullpo_retv(sd); - if( (vsd = iMap->id2sd(id)) == NULL ) + if( (vsd = map->id2sd(id)) == NULL ) return; if( !vsd->state.vending ) return; // not vending @@ -71,7 +71,7 @@ void vending_purchasereq(struct map_session_data* sd, int aid, unsigned int uid, int i, j, cursor, w, new_ = 0, blank, vend_list[MAX_VENDING]; double z; struct s_vending vend[MAX_VENDING]; // against duplicate packets - struct map_session_data* vsd = iMap->id2sd(aid); + struct map_session_data* vsd = map->id2sd(aid); nullpo_retv(sd); if( vsd == NULL || !vsd->state.vending || vsd->bl.id == sd->bl.id ) @@ -199,7 +199,7 @@ void vending_purchasereq(struct map_session_data* sd, int aid, unsigned int uid, vsd->vend_num = cursor; //Always save BOTH: buyer and customer - if( iMap->save_settings&2 ) { + if( map->save_settings&2 ) { chrif->save(sd,0); chrif->save(vsd,0); } @@ -211,7 +211,7 @@ void vending_purchasereq(struct map_session_data* sd, int aid, unsigned int uid, if( i == vsd->vend_num ) { //Close Vending (this was automatically done by the client, we have to do it manually for autovenders) [Skotlex] vending->close(vsd); - iMap->quit(vsd); //They have no reason to stay around anymore, do they? + map->quit(vsd); //They have no reason to stay around anymore, do they? } } } |