summaryrefslogtreecommitdiff
path: root/src/map/party.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-02 11:54:36 +0100
committerHaru <haru@dotalux.com>2015-12-02 11:55:16 +0100
commit300668dce8699accfb3e8cbce6db55b937230bb7 (patch)
tree5e9f28572c21e4dfe0afc8b43640109ac4db6337 /src/map/party.h
parent9be1d84752ba2ed733ae29d68304f5825cf29162 (diff)
downloadhercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.gz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.bz2
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.tar.xz
hercules-300668dce8699accfb3e8cbce6db55b937230bb7.zip
Fixed compile errors on very old PACKETVERs
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/party.h')
-rw-r--r--src/map/party.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/map/party.h b/src/map/party.h
index df7c03f05..bcc905b94 100644
--- a/src/map/party.h
+++ b/src/map/party.h
@@ -40,32 +40,27 @@ struct party_data {
#define PB_NOTICE_LENGTH (36 + 1)
-#ifndef PARTY_RECRUIT
struct party_booking_detail {
short level;
+#ifdef PARTY_RECRUIT
+ char notice[PB_NOTICE_LENGTH];
+#else // not PARTY_RECRUIT
short mapid;
short job[PARTY_BOOKING_JOBS];
+#endif // PARTY_RECRUIT
};
struct party_booking_ad_info {
unsigned int index;
- char charname[NAME_LENGTH];
- int expiretime;
- struct party_booking_detail p_detail;
-};
-#else /* PARTY_RECRUIT */
-struct party_booking_detail {
- short level;
- char notice[PB_NOTICE_LENGTH];
-};
-
-struct party_booking_ad_info {
- unsigned int index;
+#ifdef PARTY_BOOKING
int expiretime;
char charname[NAME_LENGTH];
+#else // not PARTY_BOOKING
+ char charname[NAME_LENGTH];
+ int expiretime;
+#endif // PARTY_BOOKING
struct party_booking_detail p_detail;
};
-#endif /* PARTY_RECRUIT */
/*=====================================
* Interface : party.h