static bool visual_mode_command(char ch, bool *visual_list_ptr,
int height, int width,
TERM_COLOR *attr_top_ptr, byte *char_left_ptr,
- TERM_COLOR *cur_attr_ptr, byte *cur_char_ptr, bool *need_redraw)
+ TERM_COLOR *cur_attr_ptr, SYMBOL_CODE *cur_char_ptr, bool *need_redraw)
{
static TERM_COLOR attr_old = 0;
- static byte char_old = 0;
+ static SYMBOL_CODE char_old = 0;
switch (ch)
{
int wid, hgt;
TERM_COLOR attr_old[F_LIT_MAX];
- byte char_old[F_LIT_MAX];
+ SYMBOL_CODE char_old[F_LIT_MAX];
TERM_COLOR *cur_attr_ptr;
- byte *cur_char_ptr;
+ SYMBOL_CODE *cur_char_ptr;
(void)C_WIPE(attr_old, F_LIT_MAX, byte);
(void)C_WIPE(char_old, F_LIT_MAX, byte);
extern bool player_can_see_bold(POSITION y, POSITION x);
extern bool cave_valid_bold(POSITION y, POSITION x);
extern bool no_lite(void);
-extern void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], byte f_char[F_LIT_MAX]);
+extern void apply_default_feat_lighting(TERM_COLOR f_attr[F_LIT_MAX], SYMBOL_CODE f_char[F_LIT_MAX]);
extern void map_info(POSITION y, POSITION x, TERM_COLOR *ap, char *cp, TERM_COLOR *tap, char *tcp);
extern void move_cursor_relative(int row, int col);
extern void print_rel(char c, byte a, TERM_LEN y, TERM_LEN x);
Term_xtra(TERM_XTRA_DELAY, msec);
}
}
- if(project_o(0,0,y,x,dam,GF_SEEKER))notice=TRUE;
- if( is_mirror_grid(&cave[y][x]))
+ if (project_o(0, 0, y, x, dam, GF_SEEKER))notice = TRUE;
+ if (is_mirror_grid(&cave[y][x]))
{
- /* The target of monsterspell becomes tha mirror(broken) */
- monster_target_y=(s16b)y;
- monster_target_x=(s16b)x;
+ /* The target of monsterspell becomes tha mirror(broken) */
+ monster_target_y = y;
+ monster_target_x = x;
remove_mirror(y, x);
next_mirror(&oy, &ox, y, x);
- path_n = i+project_path(&(path_g[i+1]), (project_length ? project_length : MAX_RANGE), y, x, oy, ox, flg);
- for(j = last_i; j <= i; j++)
+ path_n = i + project_path(&(path_g[i + 1]), (project_length ? project_length : MAX_RANGE), y, x, oy, ox, flg);
+ for (j = last_i; j <= i; j++)
{
y = GRID_Y(path_g[j]);
x = GRID_X(path_g[j]);
- if(project_m(0, 0, y, x, dam, GF_SEEKER, flg, TRUE)) notice=TRUE;
- if(!who && (project_m_n==1) && !jump ){
- if(cave[project_m_y][project_m_x].m_idx >0 ){
- monster_type *m_ptr = &m_list[cave[project_m_y][project_m_x].m_idx];
+ if (project_m(0, 0, y, x, dam, GF_SEEKER, flg, TRUE)) notice = TRUE;
+ if (!who && (project_m_n == 1) && !jump) {
+ if (cave[project_m_y][project_m_x].m_idx > 0) {
+ monster_type *m_ptr = &m_list[cave[project_m_y][project_m_x].m_idx];
- if (m_ptr->ml)
- {
- /* Hack -- auto-recall */
- if (!p_ptr->image) monster_race_track(m_ptr->ap_r_idx);
+ if (m_ptr->ml)
+ {
+ /* Hack -- auto-recall */
+ if (!p_ptr->image) monster_race_track(m_ptr->ap_r_idx);
- /* Hack - auto-track */
- health_track(cave[project_m_y][project_m_x].m_idx);
+ /* Hack - auto-track */
+ health_track(cave[project_m_y][project_m_x].m_idx);
+ }
}
- }
}
- (void)project_f(0,0,y,x,dam,GF_SEEKER);
+ (void)project_f(0, 0, y, x, dam, GF_SEEKER);
}
last_i = i;
}
POSITION py, px;
py = GRID_Y(path_g[i]);
px = GRID_X(path_g[i]);
- if(project_m(0, 0, py, px, dam, GF_SEEKER, flg, TRUE))
+ if (project_m(0, 0, py, px, dam, GF_SEEKER, flg, TRUE))
notice = TRUE;
- if(!who && (project_m_n==1) && !jump ){
- if(cave[project_m_y][project_m_x].m_idx > 0)
+ if (!who && (project_m_n == 1) && !jump) {
+ if (cave[project_m_y][project_m_x].m_idx > 0)
{
monster_type *m_ptr = &m_list[cave[project_m_y][project_m_x].m_idx];