if (*ap & 0x80)
{
*ap2 = 255;
- *cp2 = 255;
+ *cp2 = -1;
return;
}
/* Hack -- Queue it */
Term_queue_char(panel_col_of(x), y-panel_row_prt, a, c, ta, tc);
if (use_bigtile)
- Term_queue_char(panel_col_of(x)+1, y-panel_row_prt, 255, 255, 0, 0);
+ Term_queue_char(panel_col_of(x)+1, y-panel_row_prt, 255, -1, 0, 0);
#else /* USE_TRANSPARENCY */
/* Hack -- Queue it */
Term_queue_char(panel_col_of(x), y-panel_row_prt, a, c);
if (use_bigtile)
- Term_queue_char(panel_col_of(x)+1, y-panel_row_prt, 255, 255);
+ Term_queue_char(panel_col_of(x)+1, y-panel_row_prt, 255, -1);
#endif /* USE_TRANSPARENCY */
}
}
if (use_bigtile)
{
if (da & 0x80)
- Term_putch(44, 19, 255, 255);
+ Term_putch(44, 19, 255, -1);
else
Term_putch(44, 19, 0, ' ');
}
if (use_bigtile)
{
if (ca & 0x80)
- Term_putch(44, 20, 255, 255);
+ Term_putch(44, 20, 255, -1);
else
Term_putch(44, 20, 0, ' ');
}
if (use_bigtile)
{
if (da & 0x80)
- Term_putch(44, 19, 255, 255);
+ Term_putch(44, 19, 255, -1);
else
Term_putch(44, 19, 0, ' ');
}
if (use_bigtile)
{
if (ca & 0x80)
- Term_putch(44, 20, 255, 255);
+ Term_putch(44, 20, 255, -1);
else
Term_putch(44, 20, 0, ' ');
}
if (use_bigtile)
{
if (da & 0x80)
- Term_putch(44, 19, 255, 255);
+ Term_putch(44, 19, 255, -1);
else
Term_putch(44, 19, 0, ' ');
}
if (use_bigtile)
{
if (ca & 0x80)
- Term_putch(44, 20, 255, 255);
+ Term_putch(44, 20, 255, -1);
else
Term_putch(44, 20, 0, ' ');
}
tmp[i] = c1;
}
tmp[i] = '\0';
- strcpy(str, tmp);
+ strcpy(str, (char *)tmp);
C_KILL(tmp, len, byte);
}
/* Append the "standard" attr/char info */
Term_addstr(-1, TERM_WHITE, " ('");
Term_addch(a1, c1);
- if (use_bigtile && (a1 & 0x80)) Term_addch(255, 255);
+ if (use_bigtile && (a1 & 0x80)) Term_addch(255, -1);
Term_addstr(-1, TERM_WHITE, "')");
/* Append the "optional" attr/char info */
Term_addstr(-1, TERM_WHITE, "/('");
Term_addch(a2, c2);
- if (use_bigtile && (a2 & 0x80)) Term_addch(255, 255);
+ if (use_bigtile && (a2 & 0x80)) Term_addch(255, -1);
Term_addstr(-1, TERM_WHITE, "'):");
/* Wizards get extra info */
* This is the only function which may place a monster in the dungeon,
* except for the savefile loading code.
*/
-//bool place_monster_one(int who, int y, int x, int r_idx, bool slp, bool friendly, bool pet, bool no_pet)
bool place_monster_one(int who, int y, int x, int r_idx, u32b mode)
{
int i;
/*
* Attempt to place a "group" of monsters around the given location
*/
-//static bool place_monster_group(int who, int y, int x, int r_idx, bool slp, bool friendly, bool pet, bool no_pet)
static bool place_monster_group(int who, int y, int x, int r_idx, u32b mode)
{
monster_race *r_ptr = &r_info[r_idx];
* Note the use of the new "monster allocation table" code to restrict
* the "get_mon_num()" function to "legal" escort types.
*/
-//bool place_monster_aux(int who, int y, int x, int r_idx, bool slp, bool grp, bool friendly, bool pet, bool no_kage, bool no_pet)
bool place_monster_aux(int who, int y, int x, int r_idx, u32b mode)
{
int i;
*
* Attempt to find a monster appropriate to the "monster_level"
*/
-//bool place_monster(int y, int x, bool slp, bool grp)
bool place_monster(int y, int x, u32b mode)
{
int r_idx;
*
* Use "monster_level" for the monster level
*/
-//bool alloc_monster(int dis, bool slp)
bool alloc_monster(int dis, u32b mode)
{
int y = 0, x = 0;
*
* Note that this function may not succeed, though this is very rare.
*/
-//bool summon_specific(int who, int y1, int x1, int lev, int type, bool group, bool friendly, bool pet, bool unique_okay, bool no_pet)
bool summon_specific(int who, int y1, int x1, int lev, int type, u32b mode)
{
int x, y, r_idx;
}
/* A "dangerous" function, creates a pet of the specified type */
-//bool summon_named_creature (int who, int oy, int ox, int r_idx, bool slp, bool group_ok, bool friendly, bool pet)
bool summon_named_creature (int who, int oy, int ox, int r_idx, u32b mode)
{
int x, y;
*
* Note that "reproduction" REQUIRES empty space.
*/
-//bool multiply_monster(int m_idx, bool clone, bool friendly, bool pet)
bool multiply_monster(int m_idx, bool clone, u32b mode)
{
monster_type *m_ptr = &m_list[m_idx];
{
cur_col++;
if (a & 0x80)
- Term_draw(cur_col, j + 1, 255, 255);
+ Term_draw(cur_col, j + 1, 255, -1);
}
cur_col += 2;
}
{
cur_col++;
if (a & 0x80)
- Term_draw(cur_col, j + 1, 255, 255);
+ Term_draw(cur_col, j + 1, 255, -1);
}
cur_col += 2;
}
}
-//bool summon_kin_player(bool pet, int level, int y, int x, bool group)
bool summon_kin_player(int level, int y, int x, u32b mode)
{
bool pet = (bool)(mode & PM_FORCE_PET);
{
cur_col++;
if (a & 0x80)
- Term_draw(cur_col, i + 6, 255, 255);
+ Term_draw(cur_col, i + 6, 255, -1);
}
cur_col += 2;
}
*/
static void do_cmd_wiz_cure_all(void)
{
- /* Remove curses */
-// (void)remove_all_curse();
-
/* Restore stats */
(void)res_stat(A_STR);
(void)res_stat(A_INT);
byte *scr_aa = Term->scr->a[y];
#ifdef JP
- unsigned char *scr_cc = (unsigned char *)Term->scr->c[y];
+ char *scr_cc = Term->scr->c[y];
#ifdef USE_TRANSPARENCY
byte *scr_taa = Term->scr->ta[y];
- unsigned char *scr_tcc = Term->scr->tc[y];
+ char *scr_tcc = Term->scr->tc[y];
#endif /* USE_TRANSPARENCY */
#else
/* Æüìʸ»ú¤È¤·¤ÆMSB¤¬Î©¤Ã¤Æ¤¤¤ë²ÄǽÀ¤¬¤¢¤ë */
/* ¤½¤Î¾ì¹çattr¤ÎMSB¤âΩ¤Ã¤Æ¤¤¤ë¤Î¤Ç¤³¤ì¤Ç¼±Ê̤¹¤ë */
/* check */
- if (iskanji(*s) && !(a & 0x80))
+ if (!(a & 0x80) && iskanji(*s))
{
- int nc1 = *s++;
- int nc2 = *s;
+ char nc1 = *s++;
+ char nc2 = *s;
- int na1 = (a | KANJI1);
- int na2 = (a | KANJI2);
+ byte na1 = (a | KANJI1);
+ byte na2 = (a | KANJI2);
if((--n == 0) || !nc2) break;
#ifdef USE_TRANSPARENCY
else
{
#endif
- int oa = scr_aa[x];
- int oc = scr_cc[x];
+ byte oa = scr_aa[x];
+ char oc = scr_cc[x];
#ifdef USE_TRANSPARENCY
- int ota = scr_taa[x];
- int otc = scr_tcc[x];
+ byte ota = scr_taa[x];
+ char otc = scr_tcc[x];
/* Hack -- Ignore non-changes */
if ((oa == a) && (oc == *s) && (ota == 0) && (otc == 0)) continue;