diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 08:04:53 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 08:04:53 +0000 |
commit | e8d7a95f9416c67242db5e06fd1743c8f28b3b08 (patch) | |
tree | a31a379d1f2e3af7eede623407b4cc0a25b43383 /src/map/skill.c | |
parent | 5f6a6a2557a90573a504b541a3234f0dc566bf6a (diff) | |
download | hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.gz hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.bz2 hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.tar.xz hercules-e8d7a95f9416c67242db5e06fd1743c8f28b3b08.zip |
Some code cleaning...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11505 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 4651f035a..f3cc9a2c5 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1789,13 +1789,13 @@ int skill_strip_equip(struct block_list *bl, unsigned short where, int rate, int if (!sc) return 0; - for (i = 0; i < sizeof(pos)/sizeof(pos[0]); i++) { + for (i = 0; i < ARRAYLENGTH(pos); i++) { if (where&pos[i] && sc->data[sc_def[i]].timer != -1) where&=~pos[i]; } if (!where) return 0; - for (i = 0; i < sizeof(pos)/sizeof(pos[0]); i++) { + for (i = 0; i < ARRAYLENGTH(pos); i++) { if (where&pos[i] && !sc_start(bl, sc_atk[i], 100, lv, time)) where&=~pos[i]; } @@ -3709,7 +3709,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in { static int changeclass[]={1038,1039,1046,1059,1086,1087,1112,1115 ,1157,1159,1190,1272,1312,1373,1492}; - int class_ = mob_random_class (changeclass,sizeof(changeclass)/sizeof(changeclass[0])); + int class_ = mob_random_class (changeclass,ARRAYLENGTH(changeclass)); clif_skill_nodamage(src,bl,skillid,skilllv,1); if(dstmd) mob_class_change(dstmd,class_); } @@ -3717,7 +3717,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in case SA_MONOCELL: { static int poringclass[]={1002}; - int class_ = mob_random_class (poringclass,sizeof(poringclass)/sizeof(poringclass[0])); + int class_ = mob_random_class (poringclass,ARRAYLENGTH(poringclass)); clif_skill_nodamage(src,bl,skillid,skilllv,1); if(dstmd) mob_class_change(dstmd,class_); } |