X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fspells2.c;h=415a502842112b9fce4c216d7553a33bf2163a8c;hb=9d0a66f94f20636c768ab0158ed1ca1d95e4d580;hp=80c822cf8c31543e30a49148bed8a467d6659dce;hpb=7f2a864c82af54a518ed35e75a29d6dd00610639;p=hengband%2Fhengband.git diff --git a/src/spells2.c b/src/spells2.c index 80c822cf8..415a50284 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -3079,10 +3079,10 @@ bool fire_blast(EFFECT_ID typ, DIRECTION dir, int dd, int ds, int num, int dev) */ bool teleport_swap(DIRECTION dir) { - int tx, ty; - cave_type * c_ptr; - monster_type * m_ptr; - monster_race * r_ptr; + POSITION tx, ty; + cave_type* c_ptr; + monster_type* m_ptr; + monster_race* r_ptr; if ((dir == 5) && target_okay()) { @@ -3226,7 +3226,7 @@ bool fire_beam(EFFECT_ID typ, DIRECTION dir, HIT_POINT dam) * Affect monsters, grids and objects. * */ -bool fire_bolt_or_beam(int prob, EFFECT_ID typ, DIRECTION dir, HIT_POINT dam) +bool fire_bolt_or_beam(PERCENTAGE prob, EFFECT_ID typ, DIRECTION dir, HIT_POINT dam) { if (randint0(100) < prob) {