diff options
author | shennetsind <ind@henn.et> | 2013-10-02 14:31:46 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-02 14:31:46 -0300 |
commit | 2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6 (patch) | |
tree | 9f8d7692f8d1e23837ca7b7ca6b5c3ba874eedc3 /src/map/battleground.c | |
parent | 7c711d608a454abea0037d79b3e805d8d7cfca55 (diff) | |
download | hercules-2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6.tar.gz hercules-2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6.tar.bz2 hercules-2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6.tar.xz hercules-2f2afbd3b63a75695f8f96e3bcb4db9fff5a7dc6.zip |
HPM: Map.c Completed
Fully Interfaced.
Moved missing vars and declarations of interest into the interface, removed duplicate mentions of map within calls to shorten wherever it made sense to.
Ladies and Gentleman its my pleasure to announce that with this commit we've revised all of map-server, we've learned a hell lot from this, improved many things on the go and have a number of features to be released thanks to this. *cough* hpm hooking *cough*.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battleground.c')
-rw-r--r-- | src/map/battleground.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c index 160d2f96e..e7fe4085b 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -91,8 +91,8 @@ int bg_team_join(int bg_id, struct map_session_data *sd) { bgd->members[i].x = sd->bl.x; bgd->members[i].y = sd->bl.y; /* populate 'where i came from' */ - if(maplist[sd->bl.m].flag.nosave || maplist[sd->bl.m].instance_id >= 0) { - struct map_data *m=&maplist[sd->bl.m]; + if(map->list[sd->bl.m].flag.nosave || map->list[sd->bl.m].instance_id >= 0) { + struct map_data *m=&map->list[sd->bl.m]; if(m->save.map) memcpy(&bgd->members[i].source,&m->save,sizeof(struct point)); else |