summaryrefslogtreecommitdiff
path: root/src/char/int_party.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2019-12-30 16:44:17 +0100
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-02-05 00:30:40 +0100
commit09ca47a3174082b07b95728f54bf53528cb58c49 (patch)
tree03d9972bb8d64e5f05e51504e532c43c0107c0b7 /src/char/int_party.h
parentbf99547843038bc15dc1948748d969950e866465 (diff)
downloadhercules-09ca47a3174082b07b95728f54bf53528cb58c49.tar.gz
hercules-09ca47a3174082b07b95728f54bf53528cb58c49.tar.bz2
hercules-09ca47a3174082b07b95728f54bf53528cb58c49.tar.xz
hercules-09ca47a3174082b07b95728f54bf53528cb58c49.zip
Changed some data types from unsigned to signed.
* Changed all unsigned fields in struct party_data to signed int. * Changed data type of struct party_member->lv to signed int. * Changed parameter lv in inter_party_change_map() function to signed int. * Changed signature of inter_party_change_map() function in HPMHooking files.
Diffstat (limited to 'src/char/int_party.h')
-rw-r--r--src/char/int_party.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/char/int_party.h b/src/char/int_party.h
index b9a888cca..317e901ac 100644
--- a/src/char/int_party.h
+++ b/src/char/int_party.h
@@ -38,10 +38,11 @@ enum {
};
struct party_data {
- struct party party;
- unsigned int min_lv, max_lv;
- int family; //Is this party a family? if so, this holds the child id.
- unsigned char size; //Total size of party.
+ struct party party; // Party data.
+ int min_lv; // The lowest base level of all party members.
+ int max_lv; // The highest base level of all party members.
+ int family; // Is this party a family? If so, this holds the child's char ID.
+ int size; // Amount of party members, including offline members.
};
/**
@@ -66,7 +67,7 @@ struct inter_party_interface {
struct party_data *(*create) (const char *name, int item, int item2, const struct party_member *leader);
bool (*add_member) (int party_id, const struct party_member *member);
bool (*change_option) (int party_id, int account_id, int exp, int item, int map_fd);
- bool (*change_map) (int party_id, int account_id, int char_id, unsigned short map, int online, unsigned int lv);
+ bool (*change_map) (int party_id, int account_id, int char_id, unsigned short map, int online, int lv);
bool (*disband) (int party_id);
bool (*change_leader) (int party_id, int account_id, int char_id);
};