summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-22 16:34:34 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-22 16:34:34 +0000
commit3fe27e962cf2084d380b6229fcc07c47d0c51e67 (patch)
tree497f03f5e6b44a028506655786fcd223c0fb2913 /src/map/map.c
parent825b015a7f9e2179e593f417658ec36e484e1e6d (diff)
downloadhercules-3fe27e962cf2084d380b6229fcc07c47d0c51e67.tar.gz
hercules-3fe27e962cf2084d380b6229fcc07c47d0c51e67.tar.bz2
hercules-3fe27e962cf2084d380b6229fcc07c47d0c51e67.tar.xz
hercules-3fe27e962cf2084d380b6229fcc07c47d0c51e67.zip
- Recoded @send so that it uses clif.c instead of doing all the WFIFO stuff itself.
- Cleaned up a bunch of very uglily coded atcommands which used the rather pointless charid2sessionid and accountid2sessionid functions. - Some miscellanous cleanups around usage of the session[] variable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9293 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 12039e914..e5f266b9e 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -963,7 +963,7 @@ int map_foreachinmovearea(int (*func)(struct block_list*,va_list),int m,int x0,i
for(i=blockcount;i<bl_list_count;i++)
if(bl_list[i]->prev) { // 有?かどうかチェック
if (bl_list[i]->type == BL_PC
- && session[((struct map_session_data *) bl_list[i])->fd] == NULL)
+ && ((TBL_PC*) bl_list[i])->fd == 0)
continue;
returnCount += func(bl_list[i],ap);
}
@@ -1713,7 +1713,7 @@ int map_quit(struct map_session_data *sd) {
if(charsave_method)
{ //Let player be free'd on closing the connection.
idb_remove(pc_db,sd->status.account_id);
- if (!(sd->fd && session[sd->fd]->session_data))
+ if (!(sd->fd && session[sd->fd]->session_data == sd))
aFree(sd); //In case player was not attached to session.
return 0;
}