diff options
author | Haru <haru@dotalux.com> | 2018-09-23 16:04:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-23 16:04:42 +0200 |
commit | 0ffeb619e8ee46ca4a2f7a424211ec5c6d374e0c (patch) | |
tree | d3835a540641a99b2c155bcf20b53cdd1d984d24 /src/map/clif.c | |
parent | f82ab088af915d04c77a0d167bdd8b4ef719086c (diff) | |
parent | 5f1700478068251ba98c8a612f1744410352d076 (diff) | |
download | hercules-0ffeb619e8ee46ca4a2f7a424211ec5c6d374e0c.tar.gz hercules-0ffeb619e8ee46ca4a2f7a424211ec5c6d374e0c.tar.bz2 hercules-0ffeb619e8ee46ca4a2f7a424211ec5c6d374e0c.tar.xz hercules-0ffeb619e8ee46ca4a2f7a424211ec5c6d374e0c.zip |
Merge pull request #2195 from Asheraf/md_command
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 5cb362c7f..76625f0ba 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21857,6 +21857,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 *------------------------------------------*/ @@ -23019,4 +23030,5 @@ void clif_defaults(void) clif->pPetEvolution = clif_parse_pet_evolution; clif->petEvolutionResult = clif_pet_evolution_result; + clif->pMemorialDungeonCommand = clif_parse_memorial_dungeon_command; } |