diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-08-28 14:45:42 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-08-28 20:19:56 +0100 |
commit | 5f1700478068251ba98c8a612f1744410352d076 (patch) | |
tree | 0b154062a1cfef6540dd1a778ebbc0de88601ca1 /src/map/clif.c | |
parent | 60382483cc141a8f58859cb972db78c0aaaa08c4 (diff) | |
download | hercules-5f1700478068251ba98c8a612f1744410352d076.tar.gz hercules-5f1700478068251ba98c8a612f1744410352d076.tar.bz2 hercules-5f1700478068251ba98c8a612f1744410352d076.tar.xz hercules-5f1700478068251ba98c8a612f1744410352d076.zip |
Implement PACKET_CZ_MEMORIALDUNGEON_COMMAND
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; } |