summaryrefslogtreecommitdiff
path: root/src/char_sql/int_party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 13:48:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-07 13:48:54 +0000
commitbda4ddd3612d2ba0d6abf62bb2ccf4c9f3b33e2b (patch)
tree91ec492c387e7e9886e1c74c6953f34530c2a3e9 /src/char_sql/int_party.c
parent2479f55a86fc2919805e4f38f6ae556f2f045fd4 (diff)
downloadhercules-bda4ddd3612d2ba0d6abf62bb2ccf4c9f3b33e2b.tar.gz
hercules-bda4ddd3612d2ba0d6abf62bb2ccf4c9f3b33e2b.tar.bz2
hercules-bda4ddd3612d2ba0d6abf62bb2ccf4c9f3b33e2b.tar.xz
hercules-bda4ddd3612d2ba0d6abf62bb2ccf4c9f3b33e2b.zip
- Fixed signed/unsigned comparison issues in the char txt/sql server.
- Fixed the cooking success chances. Thanks to Ishizu Chan. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_party.c')
-rw-r--r--src/char_sql/int_party.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c
index 3a2bfa094..bfd0cef79 100644
--- a/src/char_sql/int_party.c
+++ b/src/char_sql/int_party.c
@@ -56,7 +56,8 @@ int mapif_party_optionchanged(int fd,struct party *p, int account_id, int flag);
//Updates party's level range and unsets even share if broken.
static int int_party_check_lv(struct party_data *p) {
- int i,lv;
+ int i;
+ unsigned int lv;
p->min_lv = UINT_MAX;
p->max_lv = 0;
for(i=0;i<MAX_PARTY;i++){
@@ -78,7 +79,8 @@ static int int_party_check_lv(struct party_data *p) {
//Calculates the state of a party.
static void int_party_calc_state(struct party_data *p)
{
- int i, lv;
+ int i;
+ unsigned int lv;
p->min_lv = UINT_MAX;
p->max_lv = 0;
p->party.count =