diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-06-13 04:29:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-06-13 04:49:09 +0300 |
commit | fddfde994fe98843db6802f438a5f23941836642 (patch) | |
tree | 122f80e1037e205a774b2e582d1c2805f45888e1 /src/map/clif.c | |
parent | a0abf9809663adc4eaa4496998728c513c200411 (diff) | |
download | hercules-fddfde994fe98843db6802f438a5f23941836642.tar.gz hercules-fddfde994fe98843db6802f438a5f23941836642.tar.bz2 hercules-fddfde994fe98843db6802f438a5f23941836642.tar.xz hercules-fddfde994fe98843db6802f438a5f23941836642.zip |
Add cz enum for types in packet 0x0a68.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a4d2f62b1..9be4feb70 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -20531,7 +20531,7 @@ void clif_parse_open_ui_request(int fd, struct map_session_data *sd) clif->open_ui(sd, p->UIType); } -void clif_open_ui(struct map_session_data *sd, int8 UIType) +void clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType) { #if PACKETVER_RE_NUM >= 20180307 || PACKETVER_MAIN_NUM >= 20180404 || PACKETVER_ZERO_NUM >= 20180411 int claimed = 0; @@ -20540,21 +20540,21 @@ void clif_open_ui(struct map_session_data *sd, int8 UIType) nullpo_retv(sd); p.PacketType = 0xAE2; - switch (UIType) { - case STYLIST_UI: + switch (uiType) { + case CZ_STYLIST_UI: p.UIType = STYLIST_UI; p.data = 0; break; - case 5: // client will send 5 for the request but requires to receive ATTENDANCE_UI (7) to open the correct ui. + case CZ_ATTENDANCE_UI: if (clif->attendance_timediff(sd) != true) ++claimed; else if (sd->status.attendance_count >= VECTOR_LENGTH(clif->attendance_data)) sd->status.attendance_count = 0; - p.UIType = ATTENDANCE_UI; + p.UIType = ZC_ATTENDANCE_UI; p.data = sd->status.attendance_count * 10 + claimed; break; default: - ShowWarning("clif_open_ui: Requested UI (%d) is not implemented yet.\n", UIType); + ShowWarning("clif_open_ui: Requested UI (%d) is not implemented yet.\n", uiType); return; } |