diff options
author | markzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-26 23:35:08 +0000 |
---|---|---|
committer | markzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-26 23:35:08 +0000 |
commit | eb2af623ae935795182e062375094e458ead1dc5 (patch) | |
tree | 4015a2ebcc5a1564176cc5b9cffaefb06f4f33b5 | |
parent | 67d1511648424dd77cbf0b7afa1849ccb537f777 (diff) | |
download | hercules-eb2af623ae935795182e062375094e458ead1dc5.tar.gz hercules-eb2af623ae935795182e062375094e458ead1dc5.tar.bz2 hercules-eb2af623ae935795182e062375094e458ead1dc5.tar.xz hercules-eb2af623ae935795182e062375094e458ead1dc5.zip |
- Follow up: r17046
Fixed duplicate case values which would happen if compiled under RENEWAL_CAST off.
Thanks for Zephyr which noticed it right after the commit.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17047 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index edc0a63f1..017944942 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2600,10 +2600,12 @@ int pc_bonus(struct map_session_data *sd,int type,int val) if(sd->state.lr_flag != 2) sd->bonus.fixcastrate -= val; break; +#ifdef RENEWAL_CAST case SP_VARCASTRATE: if(sd->state.lr_flag != 2) sd->bonus.varcastrate -= val; break; +#endif default: ShowWarning("pc_bonus: unknown type %d %d !\n",type,val); break; @@ -3140,6 +3142,7 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val) sd->skillvarcast[i].val = val; } break; +#ifdef RENEWAL_CAST case SP_VARCASTRATE: if(sd->state.lr_flag == 2) break; @@ -3156,6 +3159,7 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val) sd->skillcast[i].val -= val; } break; +#endif case SP_SKILL_USE_SP: //bonus2 bSkillUseSP,n,x; if(sd->state.lr_flag == 2) break; |