diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-23 11:06:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-23 11:06:58 +0000 |
commit | a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3 (patch) | |
tree | 93e52b49aaee75c70e52aa0400fe20814d38ec7a /src/map/status.c | |
parent | 4161c99f71fbd824163356c642731f7599c291e2 (diff) | |
download | hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.gz hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.bz2 hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.xz hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.zip |
- Fixed warning about unused variable
- Made the kaahi heal timer function uncrashable.
- Fixed pc move item to cart function checking against the wrong max index.
- Fixed initialization of sd issue in map_addblock
- Removed redundant reinitialization when parsing item pickup.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11968 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/status.c b/src/map/status.c index 42695e1b4..1c51ab444 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3390,7 +3390,7 @@ static unsigned short status_calc_batk(struct block_list *bl, struct status_chan if(sc->data[SC_CURSE]) batk -= batk * 25/100; //Curse shouldn't effect on this? <- Curse OR Bleeding?? -// if(sc->data[SC_BLEEDING]->) +// if(sc->data[SC_BLEEDING]) // batk -= batk * 25/100; if(sc->data[SC_FLEET]) batk += batk * sc->data[SC_FLEET]->val3/100; @@ -3819,7 +3819,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change * } aspd_rate -= max; - //These stack with the rest of bonuses-> + //These stack with the rest of bonuses. if(sc->data[SC_BERSERK]) aspd_rate -= 300; else if(sc->data[SC_MADNESSCANCEL]) @@ -6622,19 +6622,19 @@ int kaahi_heal_timer(int tid, unsigned int tick, int id, int data) struct status_data *status; int hp; - bl=map_id2bl(id); - sc=status_get_sc(bl); - status=status_get_status_data(bl); - - if (!(sc && status && data == SC_KAAHI && sc->data[data])) + ; + if(!((bl=map_id2bl(id))&& + (sc=status_get_sc(bl)) && + (sce = sc->data[SC_KAAHI]))) return 0; - sce = sc->data[data]; + if(sce->val4 != tid) { ShowError("kaahi_heal_timer: Timer mismatch: %d != %d\n", tid, sce->val4); sce->val4=-1; return 0; } - + + status=status_get_status_data(bl); if(!status_charge(bl, 0, sce->val3)) { sce->val4=-1; return 0; |