/* Display hitpoints (later) */
p_ptr->redraw |= (PR_HP);
-
p_ptr->window |= (PW_PLAYER);
}
}
*/
static void calc_torch(void)
{
- int i, rad;
+ int i;
+ POSITION rad;
object_type *o_ptr;
BIT_FLAGS flgs[TR_FLAG_SIZE];
if (have_flag(flgs, TR_LITE_M1)) rad -= 1;
if (have_flag(flgs, TR_LITE_M2)) rad -= 2;
if (have_flag(flgs, TR_LITE_M3)) rad -= 3;
- p_ptr->cur_lite += (s16b)rad;
+ p_ptr->cur_lite += rad;
}
/* max radius is 14 (was 5) without rewriting other code -- */
REALM_IDX which;
int bonus = 0;
-
concptr p;
/* Hack -- must be literate */
}
#ifdef JP
- msg_format("%sの%sを忘れてしまった。",
- do_spell(which, j % 32, SPELL_NAME), p);
+ msg_format("%sの%sを忘れてしまった。", do_spell(which, j % 32, SPELL_NAME), p);
#else
- msg_format("You have forgotten the %s of %s.", p,
- do_spell(which, j % 32, SPELL_NAME));
+ msg_format("You have forgotten the %s of %s.", p, do_spell(which, j % 32, SPELL_NAME));
#endif
/* Display mana later */
p_ptr->redraw |= (PR_MANA);
-
- p_ptr->window |= (PW_PLAYER);
- p_ptr->window |= (PW_SPELL);
+ p_ptr->window |= (PW_PLAYER | PW_SPELL);
}