summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-13 04:50:16 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-29 05:01:37 +0300
commit031cdbe5b3f108d7a732c230d061c567de723a75 (patch)
treece23cf4125616c8c9cf2c9cea5b7cdaef03f3e00 /src/map/party.c
parent73b971c66f460f5a1dcb600097b2551434f8726f (diff)
downloadhercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.gz
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.bz2
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.xz
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.zip
Add autogenerated messages list headers with original strings and translation.
Also add packet version checks for used messages.
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/party.c b/src/map/party.c
index a82ff427f..8b471e709 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -31,6 +31,7 @@
#include "map/itemdb.h"
#include "map/log.h"
#include "map/map.h"
+#include "map/messages.h"
#include "map/mob.h" // struct mob_data
#include "map/pc.h"
#include "map/skill.h"
@@ -732,7 +733,9 @@ bool party_changeleader(struct map_session_data *sd, struct map_session_data *ts
}
if (battle_config.party_change_leader_same_map && sd->bl.m != tsd->bl.m) {
+#if PACKETVER >= 20120307
clif->msgtable(sd, MSG_PARTY_MASTER_CHANGE_SAME_MAP); // It is only possible to change the party leader while on the same map.
+#endif
return false;
}