Skip to content

Commit

Permalink
Add -f to bypass the same user highscore logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dexta committed Aug 21, 2021
1 parent e05e61b commit c249204
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rogue/init.c
Expand Up @@ -64,6 +64,7 @@ char *rest_file = 0;
boolean cant_int = 0;
boolean did_int = 0;
boolean score_only;
boolean have_fun;
boolean init_curses = 0;
boolean save_is_interactive = 1;
boolean ask_quit = 1;
Expand Down Expand Up @@ -266,6 +267,9 @@ do_args(argc, argv)
case 's':
score_only = 1;
break;
case 'f':
have_fun = 1;
break;
}
}
} else {
Expand Down
1 change: 1 addition & 0 deletions rogue/rogue.h
Expand Up @@ -756,6 +756,7 @@ extern boolean r_see_invisible;
extern boolean r_teleport;
extern boolean save_is_interactive;
extern boolean score_only;
extern boolean have_fun;
extern boolean see_invisible;
extern boolean sustain_strength;
extern boolean trap_door;
Expand Down
4 changes: 2 additions & 2 deletions rogue/score.c
Expand Up @@ -233,7 +233,7 @@ put_scores(monster, other)
break;
}
ne++;
if ((!score_only) && (found_player == -1)) {
if ((!score_only) && (!have_fun) && (found_player == -1)) {
if (!name_cmp(scores[i]+15, login_name)) {
x = 5;
while (scores[i][x] == ' ') {
Expand All @@ -248,7 +248,7 @@ put_scores(monster, other)
}
}
}
if (found_player != -1) {
if ( (!have_fun) && (found_player != -1) ) {
ne--;
for (i = found_player; i < ne; i++) {
(void) strcpy(scores[i], scores[i+1]);
Expand Down

0 comments on commit c249204

Please sign in to comment.