Morph static variables

This commit is contained in:
jl777
2019-03-19 01:35:15 -11:00
parent f58655b1cd
commit 0322f2d98c
10 changed files with 80 additions and 104 deletions

View File

@@ -334,12 +334,9 @@ pick_one(struct rogue_state *rs,struct obj_info *info, int nitems)
* list what the player has discovered in this game of a certain type
*/
static int line_cnt = 0;
static bool newpage = FALSE;
static char *lastfmt, *lastarg;
void
discovered(struct rogue_state *rs)
{
@@ -480,16 +477,16 @@ add_line(struct rogue_state *rs,char *fmt, char *arg)
if (line_cnt == 0)
{
wclear(hw);
if (inv_type == INV_SLOW)
mpos = 0;
wclear(hw);
if (inv_type == INV_SLOW)
mpos = 0;
}
if (inv_type == INV_SLOW)
{
if (*fmt != '\0')
if (msg(rs,fmt, arg) == ESCAPE)
return ESCAPE;
line_cnt++;
if (*fmt != '\0')
if (msg(rs,fmt, arg) == ESCAPE)
return ESCAPE;
line_cnt++;
}
else
{