Explorar el Código

- 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://svn.code.sf.net/p/rathena/svn/trunk@17047 54d463be-8e91-2dee-dedb-b68131a5f0ec

markzd hace 12 años
padre
commit
16788f470f
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/map/pc.c

+ 4 - 0
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;