set_action(ACTION_NONE);
}
- if (shuriken)
+ if (shuriken >= 0)
{
item = shuriken;
}
/* Max distance of 10-18 */
if (tdis > mul) tdis = mul;
- if (shuriken)
+ if (shuriken >= 0)
{
ty = randint0(101)-50+py;
tx = randint0(101)-50+px;
*/
void do_cmd_throw(void)
{
- do_cmd_throw_aux(1, FALSE, 0);
+ do_cmd_throw_aux(1, FALSE, -1);
}
if (cast)
{
- if (!do_cmd_throw_aux(1, TRUE, 0)) return NULL;
+ if (!do_cmd_throw_aux(1, TRUE, -1)) return NULL;
}
break;
/* XXX_XXX_XXX Hack! MUT1_LAUNCHER is negative, see above */
case 3: /* MUT1_LAUNCHER */
/* Gives a multiplier of 2 at first, up to 3 at 40th */
- if (!do_cmd_throw_aux(2 + lvl / 40, FALSE, 0)) return FALSE;
+ if (!do_cmd_throw_aux(2 + lvl / 40, FALSE, -1)) return FALSE;
break;
default: