diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-22 16:42:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-22 16:42:52 +0300 |
commit | f97c4884316bfe3c5f59c1271dfbf0e19ca716bc (patch) | |
tree | 9ed4aa53f11d8b2c44950d6af4038dd9be5b6f3a /src/map/parse.c | |
parent | 9ecd36f5dd308aac9bfd673474774bd3a727df53 (diff) | |
download | plugin-f97c4884316bfe3c5f59c1271dfbf0e19ca716bc.tar.gz plugin-f97c4884316bfe3c5f59c1271dfbf0e19ca716bc.tar.bz2 plugin-f97c4884316bfe3c5f59c1271dfbf0e19ca716bc.tar.xz plugin-f97c4884316bfe3c5f59c1271dfbf0e19ca716bc.zip |
Allow change pet direction by packet from client.
Diffstat (limited to 'src/map/parse.c')
-rw-r--r-- | src/map/parse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c index 0a7faf1..1b905ea 100644 --- a/src/map/parse.c +++ b/src/map/parse.c @@ -151,3 +151,11 @@ void map_parse_pet_move(int fd) if (map->getcell(pdBl->m, x, y, CELL_CHKPASS)) unit->walktoxy(pdBl, x, y, 0); } + +void map_parse_pet_dir(int fd) +{ + struct map_session_data* sd = (struct map_session_data*)session[fd]->session_data; + if (!sd || !sd->pd) + return; + unit->setdir(&sd->pd->bl, RFIFOB(fd, 8)); +} |