-score
This commit is contained in:
@@ -46,12 +46,14 @@ static char *rip[] = {
|
||||
/* VARARGS2 */
|
||||
|
||||
void
|
||||
score(int amount, int flags, char monst)
|
||||
score(struct rogue_state *rs,int amount, int flags, char monst)
|
||||
{
|
||||
SCORE *scp;
|
||||
int i;
|
||||
SCORE *sc2;
|
||||
SCORE *top_ten, *endp;
|
||||
if ( rs->guiflag == 0 )
|
||||
return;
|
||||
# ifdef MASTER
|
||||
int prflags = 0;
|
||||
# endif
|
||||
@@ -274,7 +276,7 @@ death(struct rogue_state *rs,char monst)
|
||||
}
|
||||
move(LINES - 1, 0);
|
||||
refresh();
|
||||
score(purse, amulet ? 3 : 0, monst);
|
||||
score(rs,purse, amulet ? 3 : 0, monst);
|
||||
rogue_bailout();
|
||||
printf("[Press return to continue]");
|
||||
fflush(stdout);
|
||||
@@ -390,7 +392,7 @@ total_winner(struct rogue_state *rs)
|
||||
}
|
||||
printw(" %5d Gold Pieces ", oldpurse);
|
||||
refresh();
|
||||
score(purse, 2, ' ');
|
||||
score(rs,purse, 2, ' ');
|
||||
my_exit(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -384,7 +384,7 @@ int rogue(int argc, char **argv, char **envp)
|
||||
if (strcmp(argv[1], "-s") == 0)
|
||||
{
|
||||
noscore = TRUE;
|
||||
score(0, -1, 0);
|
||||
score(rs,0, -1, 0);
|
||||
exit(0);
|
||||
}
|
||||
else if (strcmp(argv[1], "-d") == 0)
|
||||
@@ -602,14 +602,14 @@ quit(int sig)
|
||||
move(LINES - 1, 0);
|
||||
if ( rs->sleeptime != 0 )
|
||||
refresh();
|
||||
score(purse, 1, 0);
|
||||
score(rs,purse, 1, 0);
|
||||
flushkeystrokes(rs);
|
||||
my_exit(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr,"done!\n");
|
||||
score(purse, 1, 0);
|
||||
score(rs,purse, 1, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -698,7 +698,7 @@ int save(int which);
|
||||
void save_file(struct rogue_state *rs,FILE *savef,int32_t guiflag);
|
||||
void save_game(struct rogue_state *rs);
|
||||
int save_throw(int which, THING *tp);
|
||||
void score(int amount, int flags, char monst);
|
||||
void score(struct rogue_state *rs,int amount, int flags, char monst);
|
||||
void search(struct rogue_state *rs);
|
||||
void set_know(THING *obj, struct obj_info *info);
|
||||
void set_oldch(THING *tp, coord *cp);
|
||||
|
||||
Reference in New Issue
Block a user