diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-14 23:28:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-29 20:59:31 +0300 |
commit | b55eddc4e2fad482ea89b904f0c56ca258493bf0 (patch) | |
tree | 4ae891f7aa870b1d210934f9d4d00503a58e666d /src/char | |
parent | 6cdc68d45c5bfe45f0be72d8b1da143ed2a50975 (diff) | |
download | hercules-b55eddc4e2fad482ea89b904f0c56ca258493bf0.tar.gz hercules-b55eddc4e2fad482ea89b904f0c56ca258493bf0.tar.bz2 hercules-b55eddc4e2fad482ea89b904f0c56ca258493bf0.tar.xz hercules-b55eddc4e2fad482ea89b904f0c56ca258493bf0.zip |
Simplify version checks with new packet version defines.
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 0069e7f1d..93fb1be75 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3328,7 +3328,7 @@ void char_char_name_ack(int fd, int char_id) WFIFOHEAD(fd,30); WFIFOW(fd,0) = 0x2b09; WFIFOL(fd,2) = char_id; -#if !defined(PACKETVER_ZERO) && (PACKETVER >= 20180307 || (defined(PACKETVER_RE) && PACKETVER >= 20180221)) +#if PACKETVER_MAIN_NUM >= 20180307 || PACKETVER_RE_NUM >= 20180221 if (chr->loadName(char_id, WFIFOP(fd,6)) == 0) WFIFOL(fd, 6) = 0; #else |