From 5f1700478068251ba98c8a612f1744410352d076 Mon Sep 17 00:00:00 2001 From: Asheraf Date: Tue, 28 Aug 2018 14:45:42 +0100 Subject: Implement PACKET_CZ_MEMORIALDUNGEON_COMMAND --- src/map/clif.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 4e48d7886..bc3e4f4af 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21747,6 +21747,17 @@ static void clif_party_dead_notification(struct map_session_data *sd) #endif } +static void clif_parse_memorial_dungeon_command(int fd, struct map_session_data *sd) __attribute__((nonnull(2))); +static void clif_parse_memorial_dungeon_command(int fd, struct map_session_data *sd) +{ + const struct PACKET_CZ_MEMORIALDUNGEON_COMMAND *p = RP2PTR(fd); + + switch (p->command) { + case COMMAND_MEMORIALDUNGEON_DESTROY_FORCE: + instance->force_destroy(sd); + } +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -22902,4 +22913,5 @@ void clif_defaults(void) clif->pPetEvolution = clif_parse_pet_evolution; clif->petEvolutionResult = clif_pet_evolution_result; + clif->pMemorialDungeonCommand = clif_parse_memorial_dungeon_command; } -- cgit v1.2.3-60-g2f50