diff options
author | shennetsind <ind@henn.et> | 2013-06-13 08:23:15 -0300 |
---|---|---|
committer | Euphy <euphy@rathena.org> | 2013-06-15 15:52:34 -0400 |
commit | 1ed244517953b0ac74950e7ec1b388f915c78b86 (patch) | |
tree | cb85cbc18d75c689f64cb14c2a3528d5e073e5c0 /src/map/battle.c | |
parent | a74d357158adb36bd318b372b159fddd3f3fc378 (diff) | |
download | hercules-1ed244517953b0ac74950e7ec1b388f915c78b86.tar.gz hercules-1ed244517953b0ac74950e7ec1b388f915c78b86.tar.bz2 hercules-1ed244517953b0ac74950e7ec1b388f915c78b86.tar.xz hercules-1ed244517953b0ac74950e7ec1b388f915c78b86.zip |
Revert "Fixed pre-re build warning"
This reverts commit 4b713e7e3eac34339285125d194ae4ff4627fc2a.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 23423502a..9fa4224f5 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1183,8 +1183,8 @@ int battle_calc_defense(int attack_type, struct block_list *src, struct block_li * def1 = equip def * def2 = status def **/ - defType def1 = status_get_def(target), def2 = tstatus->def2; //Don't use tstatus->def1 due to skill timer reductions. - short vit_def; + defType def1 = status_get_def(target); //Don't use tstatus->def1 due to skill timer reductions. + short def2 = tstatus->def2, vit_def; def1 = status_calc_def2(target, tsc, def1, false); // equip def(RE) def2 = status_calc_def(target, tsc, def2, false); // status def(RE) @@ -1289,7 +1289,8 @@ int battle_calc_defense(int attack_type, struct block_list *src, struct block_li case BF_MAGIC: { - defType mdef = tstatus->mdef, mdef2 = tstatus->mdef2; + defType mdef = tstatus->mdef; + short mdef2= tstatus->mdef2; mdef2 = status_calc_mdef(target, tsc, mdef2, false); // status mdef(RE) mdef = status_calc_mdef2(target, tsc, mdef, false); // equip mde(RE) |