summaryrefslogtreecommitdiff
path: root/src/map/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/parse.c')
-rw-r--r--src/map/parse.c8
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));
+}