/*
* Auto inscription
*/
-void auto_inscribe_item(s16b item, int idx)
+void auto_inscribe_item(int item, int idx)
{
object_type *o_ptr;
/*
* Automatically destroy an item if it is to be destroyed
*/
-bool auto_destroy_item(s16b item, int autopick_idx)
+bool auto_destroy_item(int item, int autopick_idx)
{
char o_name[MAX_NLEN];
object_type *o_ptr;
else
strncpy(buf + sepa_length - 21, " (COMMAND MODE) ", 16);
- Term_putstr(0, hgt - 3, sepa_length, edit_mode ? TERM_YELLOW : TERM_WHITE, buf);
+ Term_putstr(0, hgt - 3, sepa_length, (byte) (edit_mode ? TERM_YELLOW : TERM_WHITE), buf);
}
/* Dump up to 20, or hgt-4, lines of messages */
case KTRL('k'):
/* Kill rest of line */
- if (lines_list[cy][0] != '\0' && cx < strlen(lines_list[cy]))
+ if (lines_list[cy][0] != '\0' && (unsigned int) cx < strlen(lines_list[cy]))
{
for (i = j = 0; lines_list[cy][i] && i < cx; i++)
{
{
char buf[80];
errr err;
- int i;
#ifdef JP
if(!get_check("¼«Æ°½¦¤¤ÀßÄê¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥É¤·¤Þ¤¹¤«? ")) return;
}
-static void cmd_visuals_aux(char i, int *num, int max)
+static void cmd_visuals_aux(int i, int *num, int max)
{
if (iscntrl(i))
{
shouhimana /= 9600;
if(shouhimana < 1) shouhimana = 1;
shouhimana *= 0x8000;
- if ((p_ptr->csp < shouhimana / 0x10000) || (p_ptr->anti_magic))
+ if (((u16b)(p_ptr->csp) < (shouhimana / 0x10000)) || (p_ptr->anti_magic))
{
stop_singing();
return;
}
else
{
- p_ptr->csp -= shouhimana / 0x10000;
- shouhimana = (shouhimana & 0xffff);
- if (p_ptr->csp_frac < shouhimana)
+ p_ptr->csp -= (u16b) (shouhimana / 0x10000);
+ shouhimana = (shouhimana & 0xffff);
+ if (p_ptr->csp_frac < shouhimana)
{
p_ptr->csp--;
p_ptr->csp_frac += (u16b)(0x10000L - shouhimana);
extern bool autopick_new_entry(autopick_type *entry, cptr str);
extern void autopick_free_entry(autopick_type *entry);
extern int is_autopick(object_type *o_ptr);
-extern void auto_inscribe_item(s16b item, int idx);
-extern bool auto_destroy_item(s16b item, int autopick_idx);
+extern void auto_inscribe_item(int item, int idx);
+extern bool auto_destroy_item(int item, int autopick_idx);
extern void auto_pickup_items(cave_type *c_ptr);
extern void autopick_entry_from_object(autopick_type *entry, object_type *o_ptr);
extern void init_autopicker(void);
extern void generate_cave(void);
/* init1.c */
-extern int color_char_to_attr(char c);
+extern byte color_char_to_attr(char c);
extern errr process_dungeon_file(cptr name, int ymin, int xmin, int ymax, int xmax);
/* init2.c */
fprintf(fff, "%s\n", buf);
}
- for (i = 0; i < p_ptr->count / 80; i++)
+ for (i = 0; (unsigned int) i < (p_ptr->count / 80); i++)
fprintf(fff, " ");
fprintf(fff, "\n");
- for (i = 0; i < p_ptr->count % 80; i++)
+ for (i = 0; (unsigned int) i < (p_ptr->count % 80); i++)
fprintf(fff, " ");
{
/* Color ? */
if (prefix(str + x, "[[[[["))
{
- int c = color_char_to_attr(str[x + 5]);
+ byte c = color_char_to_attr(str[x + 5]);
x += 6;
/* Ok print the link name */
* Convert a "color letter" into an "actual" color
* The colors are: dwsorgbuDWvyRGBU, as shown below
*/
-int color_char_to_attr(char c)
+byte color_char_to_attr(char c)
{
switch (c)
{
/* Process 'G' for "Graphics" (one line only) */
else if (buf[0] == 'G')
{
- int tmp;
+ byte tmp;
/* Paranoia */
if (!buf[2]) return (1);
else if (buf[0] == 'G')
{
char sym;
- int tmp;
+ byte tmp;
/* Paranoia */
if (!buf[2]) return (1);
else if (buf[0] == 'G')
{
char sym;
- int tmp;
+ byte tmp;
/* Paranoia */
if (!buf[2]) return (1);
bool fire_blast(int typ, int dir, int dd, int ds, int num, int dev)
{
int ly, lx, ld;
- int ty, tx, y, x, dist;
+ int ty, tx, y, x;
int i;
int flg = PROJECT_FAST | PROJECT_THRU | PROJECT_STOP | PROJECT_KILL | PROJECT_GRID;
static struct {
- int attr;
+ byte attr;
cptr sstr;
cptr lstr;
} bar[]
#ifdef CHUUKEI
send_text_to_chuukei_server(tx, ty, csize, (old_aa[tx] & 0xf), &old_cc[tx]);
#endif
- (void)((*Term->text_hook)(tx, ty, csize, (old_aa[tx] & 0xf), &old_cc[tx]));
+ (void)((*Term->text_hook)(tx, ty, csize, (unsigned char) (old_aa[tx] & 0xf), &old_cc[tx]));
}
/* Hack -- erase the grid */