diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-09 01:49:50 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-09 01:49:50 +0000 |
commit | e7beef1499ae660af01f163a16b9040bd60d8845 (patch) | |
tree | cefcd0a5eff2a2f041ab5e07f6f14cbc8549d567 /src/map/chrif.c | |
parent | 6f96f2dea64de97bd5a16a146c8ce943b01563de (diff) | |
download | hercules-e7beef1499ae660af01f163a16b9040bd60d8845.tar.gz hercules-e7beef1499ae660af01f163a16b9040bd60d8845.tar.bz2 hercules-e7beef1499ae660af01f163a16b9040bd60d8845.tar.xz hercules-e7beef1499ae660af01f163a16b9040bd60d8845.zip |
- Added info on packet 0x86 (simple move packet). Not usable until a clear separation between entering sight/leaving sight/walking in sight is done.
- Propagating const char* from the script engine.
- ".gat" is appended to the map name before sending the changemapserver packet to the client.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9979 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 6a90b14ea..87517f40c 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -377,6 +377,7 @@ int chrif_changemapserver(struct map_session_data *sd, short map, int x, int y, int chrif_changemapserverack(int fd) { struct map_session_data *sd; + char mapname[MAP_NAME_LENGTH+1]; RFIFOHEAD(fd); sd = map_id2sd(RFIFOL(fd,2)); @@ -389,7 +390,8 @@ int chrif_changemapserverack(int fd) clif_authfail_fd(sd->fd, 0); return 0; } - clif_changemapserver(sd, (char*)mapindex_id2name(RFIFOW(fd,18)), RFIFOW(fd,20), RFIFOW(fd,22), RFIFOL(fd,24), RFIFOW(fd,28)); + sprintf(mapname, "%s.gat", mapindex_id2name(RFIFOW(fd,18))); + clif_changemapserver(sd, mapname, RFIFOW(fd,20), RFIFOW(fd,22), RFIFOL(fd,24), RFIFOW(fd,28)); //Player has been saved already, remove him from memory. [Skotlex] map_quit(sd); |