diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-01 01:55:35 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-01 01:55:35 +0000 |
commit | 291142d689cdc66d8bd3a8980056adab2e4b8a5a (patch) | |
tree | 61f0d4c9561fefe58fc5e36d5bbd221231f878bc /src/map/chrif.c | |
parent | 743c2576cca728f2313aa20d7f9a2d2b97257ecc (diff) | |
download | hercules-291142d689cdc66d8bd3a8980056adab2e4b8a5a.tar.gz hercules-291142d689cdc66d8bd3a8980056adab2e4b8a5a.tar.bz2 hercules-291142d689cdc66d8bd3a8980056adab2e4b8a5a.tar.xz hercules-291142d689cdc66d8bd3a8980056adab2e4b8a5a.zip |
[Fixed]:
- Guys can't go across map-servers :( Thanks to Buuyo^
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6905 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 17e47b4f5..7f4c0be92 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -324,11 +324,11 @@ int chrif_changemapserver(struct map_session_data *sd, short map, int x, int y, chrif_check(-1);
s_ip = 0;
- for(i = 0; i < fd_max; i++)
- if (session[i] && session[i]->session_data == sd) {
- s_ip = session[i]->client_addr.sin_addr.s_addr;
- break;
- }
+ //for(i = 0; i < fd_max; i++)
+ // if (session[i] && session[i]->session_data == sd) {
+ s_ip = session[sd->fd]->client_addr.sin_addr.s_addr; // For what you're looping it? [Lance]
+ // break;
+ // }
WFIFOHEAD(char_fd, 35);
WFIFOW(char_fd, 0) = 0x2b05;
|