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