diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-22 16:46:09 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-22 16:46:09 +0000 |
commit | fad0a74cd53f827e4c006b497b658baca2065a3d (patch) | |
tree | fd896b3f74145cf3b2f43077b96fadb3f49ae514 /src/map/status.c | |
parent | 782af771684f613e20111bd498ccd1b885978551 (diff) | |
download | hercules-fad0a74cd53f827e4c006b497b658baca2065a3d.tar.gz hercules-fad0a74cd53f827e4c006b497b658baca2065a3d.tar.bz2 hercules-fad0a74cd53f827e4c006b497b658baca2065a3d.tar.xz hercules-fad0a74cd53f827e4c006b497b658baca2065a3d.zip |
- Removed unused bIgnoreDefMob
- Removed unneeded sd variables cart_max_weight and cart_max_num
- Made ignore_mdef_ele/ignore_mdef_race/ignore_def_ele/ignore_def_race unsigned chars rather than ints.
- Made pc_dropitem check for inventory_data, to guarantee that the item will be deleted from the inventory after dropping it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10051 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c index e2452ad93..58e696f37 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1566,9 +1566,7 @@ int status_calc_pc(struct map_session_data* sd,int first) continue; sd->weight += sd->inventory_data[i]->weight*sd->status.inventory[i].amount; } - sd->cart_max_weight=battle_config.max_cart_weight; sd->cart_weight=0; - sd->cart_max_num=MAX_CART; sd->cart_num=0; for(i=0;i<MAX_CART;i++){ if(sd->status.cart[i].nameid==0) @@ -1675,8 +1673,6 @@ int status_calc_pc(struct map_session_data* sd,int first) + sizeof(sd->long_attack_def_rate) + sizeof(sd->magic_def_rate) + sizeof(sd->misc_def_rate) - + sizeof(sd->ignore_mdef_ele) - + sizeof(sd->ignore_mdef_race) + sizeof(sd->perfect_hit) + sizeof(sd->perfect_hit_add) + sizeof(sd->get_zeny_rate) @@ -1716,6 +1712,9 @@ int status_calc_pc(struct map_session_data* sd,int first) + sizeof(sd->add_mdef_count) + sizeof(sd->add_dmg_count) + sizeof(sd->add_mdmg_count) + // chars + + sizeof(sd->ignore_mdef_ele) + + sizeof(sd->ignore_mdef_race) ); // Parse equipment. |