syntax
This commit is contained in:
@@ -355,9 +355,9 @@ over:
|
||||
when ']': current(rs,cur_armor, "wearing", NULL);
|
||||
when '=':
|
||||
current(rs,cur_ring[LEFT], "wearing",
|
||||
terse ? "(L)" : "on left hand");
|
||||
terse ? (char *)"(L)" : (char *)"on left hand");
|
||||
current(rs,cur_ring[RIGHT], "wearing",
|
||||
terse ? "(R)" : "on right hand");
|
||||
terse ? (char *)"(R)" : (char *)"on right hand");
|
||||
when '@':
|
||||
stat_msg = TRUE;
|
||||
status(rs);
|
||||
@@ -784,7 +784,7 @@ norm:
|
||||
{
|
||||
if (*guess != NULL)
|
||||
free(*guess);
|
||||
*guess = malloc((unsigned int) strlen(prbuf) + 1);
|
||||
*guess = (char *)malloc((unsigned int) strlen(prbuf) + 1);
|
||||
strcpy(*guess, prbuf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -353,7 +353,7 @@ set_mname(THING *tp)
|
||||
static char tbuf[MAXSTR] = { 't', 'h', 'e', ' ' };
|
||||
|
||||
if (!see_monst(tp) && !on(player, SEEMONST))
|
||||
return (terse ? "it" : "something");
|
||||
return (terse ? (char *)"it" : (char *)"something");
|
||||
else if (on(player, ISHALU))
|
||||
{
|
||||
move(tp->t_pos.y, tp->t_pos.x);
|
||||
|
||||
@@ -100,7 +100,7 @@ new_item(void)
|
||||
THING *item;
|
||||
|
||||
#ifdef MASTER
|
||||
if ((item = calloc(1, sizeof *item)) == NULL)
|
||||
if ((item = (THING *)calloc(1, sizeof *item)) == NULL)
|
||||
msg(rs,"ran out of memory after %d items", total);
|
||||
else
|
||||
total++;
|
||||
|
||||
Reference in New Issue
Block a user