summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-28 01:11:32 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-28 01:11:32 -0300
commit8c5eb409e496fe4d2ebc5d2669be868ef2b205a5 (patch)
tree4b4598a3207ffdd26e86172868f4582ad84120d2
parentaf3dc3c5c41a9a9935b05132a0d8efd21a9798be (diff)
downloadplugin-8c5eb409e496fe4d2ebc5d2669be868ef2b205a5.tar.gz
plugin-8c5eb409e496fe4d2ebc5d2669be868ef2b205a5.tar.bz2
plugin-8c5eb409e496fe4d2ebc5d2669be868ef2b205a5.tar.xz
plugin-8c5eb409e496fe4d2ebc5d2669be868ef2b205a5.zip
Do not attempt to use this. I'm doing a noob mistake here and need help u.ujesusalva/support
-rw-r--r--src/emap/party.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/emap/party.c b/src/emap/party.c
index 482fbd6..c0a303c 100644
--- a/src/emap/party.c
+++ b/src/emap/party.c
@@ -3,6 +3,7 @@
#include "common/hercules.h"
#include "common/HPMi.h"
+#include "common/mmo.h"
#include "common/nullpo.h"
#include "common/timer.h"
#include "common/socket.h" // last_tick
@@ -35,9 +36,18 @@ int eparty_exp_share(struct party_data **p, struct block_list **src, unsigned in
if( (sd[c] = (*p)->data[i].sd) == NULL || sd[c]->bl.m != (*src)->m || pc_isdead(sd[c]) || pc_isidle(sd[c]) )
continue;
c++;
- lvl += sd[c]->status.base_level; // XXX
+ /*
+ if (sd[c]->status.base_level == NULL) {
+ ShowDebug("ERROR, NULL LEVEL FOR PARTY MEMBER");
+ }
+ ShowDebug("C is %u, LVL is %u, TLVL is %d\n", c, lvl, sd[c]->status.base_level);
+ */
+ lvl += (unsigned int)(sd[c]->status.base_level); // XXX
}
- if (c < 1)
+
+ ShowDebug("\nC is %u, LVL is %u\n", c, lvl);
+
+ if (c < 1 || lvl < 1)
return 0;
// We don't care for pointers...