if (panel_contains(ny, nx))
{
byte a = default_color;
- char c;
+ char c, c2;
#ifdef USE_TRANSPARENCY
byte ta;
char tc;
+#endif
if (cave[ny][nx].m_idx && m_list[cave[ny][nx].m_idx].ml)
{
/* Determine what is there */
+#ifdef USE_TRANSPARENCY
map_info(ny, nx, &a, &c, &ta, &tc);
+#else
+ map_info(ny, nx, &a, &c);
+#endif
if (c == '.' && (a == TERM_WHITE || a == TERM_L_WHITE))
a = default_color;
else if (p_ptr->wraith_form) a = TERM_L_DARK;
}
-
- /* Hack -- Queue it */
- Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, '*', ta, tc);
-#else /* USE_TRANSPARENCY */
-
- if (cave[ny][nx].m_idx && m_list[cave[ny][nx].m_idx].ml)
- {
- /* Determine what is there */
- map_info(ny, nx, &a, &c);
-
- if (c == '.' && (a == TERM_WHITE || a == TERM_L_WHITE))
- a = default_color;
- else if (a == default_color)
- a = TERM_WHITE;
- }
-
- if (fake_monochrome)
+ c = '*';
+ if (use_bigtile)
{
- if (world_monster) a = TERM_DARK;
- else if (p_ptr->invuln || world_player) a = TERM_WHITE;
- else if ((p_ptr->pclass == CLASS_BARD) && (p_ptr->magic_num1[0] == MUSIC_INVULN)) a = TERM_WHITE;
- else if (p_ptr->wraith_form) a = TERM_L_DARK;
+#ifdef JP
+ c2 = ascii_to_zenkaku[2*(c-' ') + 1];
+ c = ascii_to_zenkaku[2*(c-' ')];
+#else
+ c2 = '*';
+#endif
}
/* Hack -- Queue it */
- Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, '*');
-#endif /* USE_TRANSPARENCY */
+#ifdef USE_TRANSPARENCY
+ Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, c, ta, tc);
+ if (use_bigtile) Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, c2, ta, tc);
+#else
+ Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, c);
+ if (use_bigtile) Term_queue_char(panel_col_of(nx), ny-panel_row_prt, a, c2);
+#endif
}
/* Known Wall */
create_down_stair = create_up_stair = 0;
}
+ /* Validate the panel */
+ panel_bounds_center();
/* Verify the panel */
verify_panel();
- /* Validate the panel */
- if (center_player)
- {
- panel_bounds_center();
- }
- else
- {
- panel_bounds();
- }
-
-
/* Flush messages */
msg_print(NULL);
extern s16b rating;
extern bool good_item_flag;
extern bool closing_flag;
-extern s16b panel_row, panel_col;
extern s16b panel_row_min, panel_row_max;
extern s16b panel_col_min, panel_col_max;
extern s16b panel_col_prt, panel_row_prt;
extern void monster_death(int m_idx, bool drop_item);
extern bool mon_take_hit(int m_idx, int dam, bool *fear, cptr note);
extern void get_screen_size(int *wid_p, int *hgt_p);
-extern void panel_bounds(void);
extern void panel_bounds_center(void);
extern void resize_map(void);
extern void redraw_window(void);
cur_wid = level_width * SCREEN_WID;
/* Assume illegal panel */
- panel_row = 255;
- panel_col = 255;
+ panel_row_min = 255;
+ panel_col_min = 255;
if (cheat_room)
msg_format("X:%d, Y:%d.", cur_hgt, cur_wid);
cur_wid = MAX_WID;
/* Assume illegal panel */
- panel_row = 255;
- panel_col = 255;
+ panel_row_min = 255;
+ panel_col_min = 255;
}
/* Make a dungeon */
cur_wid = panels_x * SCREEN_WID;
/* Assume illegal panel */
- panel_row = 255;
- panel_col = 255;
+ panel_row_min = 255;
+ panel_col_min = 255;
/* Place player in a quest level */
if (p_ptr->inside_quest)
* Dungeon size info
*/
-s16b panel_row, panel_col;
-s16b panel_row_min, panel_row_max;
+s16b panel_row_min = 255, panel_row_max = 255;
s16b panel_col_min, panel_col_max;
s16b panel_col_prt, panel_row_prt;
cur_wid = MAX_WID;
/* Assume illegal panel */
- panel_row = 255;
- panel_col = 255;
+ panel_row_min = 255;
+ panel_col_min = 255;
/* Init the wilderness */
if (cur_wid > MAX_WID) cur_wid = MAX_WID;
/* Assume illegal panel */
- panel_row = 255;
- panel_col = 255;
+ panel_row_min = 255;
+ panel_col_min = 255;
/* Place the player */
px = p_ptr->wilderness_x;
if (use_bigtile) *wid_p /= 2;
}
-/*
- * Calculates current boundaries
- * Called below and from "do_cmd_locate()".
- */
-void panel_bounds(void)
-{
- int wid, hgt;
-
- /* Get size */
- get_screen_size(&wid, &hgt);
-
- panel_row_min = panel_row * hgt / 2;
- panel_row_max = panel_row_min + hgt - 1;
- panel_row_prt = panel_row_min - 1;
- panel_col_min = panel_col * wid / 2;
- panel_col_max = panel_col_min + wid - 1;
- panel_col_prt = panel_col_min - 13;
-}
-
/*
* Calculates current boundaries
* Called below and from "do_cmd_locate()".
- * Modified for "centering player on screen"
*/
void panel_bounds_center(void)
{
/* Get size */
get_screen_size(&wid, &hgt);
- panel_row = panel_row_min / (hgt / 2);
panel_row_max = panel_row_min + hgt - 1;
panel_row_prt = panel_row_min - 1;
- panel_col = panel_col_min / (wid / 2);
panel_col_max = panel_col_min + wid - 1;
panel_col_prt = panel_col_min - 13;
}