Skip to content

Commit c249204

Browse files
committed
Add -f to bypass the same user highscore logic
1 parent e05e61b commit c249204

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

rogue/init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ char *rest_file = 0;
6464
boolean cant_int = 0;
6565
boolean did_int = 0;
6666
boolean score_only;
67+
boolean have_fun;
6768
boolean init_curses = 0;
6869
boolean save_is_interactive = 1;
6970
boolean ask_quit = 1;
@@ -266,6 +267,9 @@ do_args(argc, argv)
266267
case 's':
267268
score_only = 1;
268269
break;
270+
case 'f':
271+
have_fun = 1;
272+
break;
269273
}
270274
}
271275
} else {

rogue/rogue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ extern boolean r_see_invisible;
756756
extern boolean r_teleport;
757757
extern boolean save_is_interactive;
758758
extern boolean score_only;
759+
extern boolean have_fun;
759760
extern boolean see_invisible;
760761
extern boolean sustain_strength;
761762
extern boolean trap_door;

rogue/score.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ put_scores(monster, other)
233233
break;
234234
}
235235
ne++;
236-
if ((!score_only) && (found_player == -1)) {
236+
if ((!score_only) && (!have_fun) && (found_player == -1)) {
237237
if (!name_cmp(scores[i]+15, login_name)) {
238238
x = 5;
239239
while (scores[i][x] == ' ') {
@@ -248,7 +248,7 @@ put_scores(monster, other)
248248
}
249249
}
250250
}
251-
if (found_player != -1) {
251+
if ( (!have_fun) && (found_player != -1) ) {
252252
ne--;
253253
for (i = found_player; i < ne; i++) {
254254
(void) strcpy(scores[i], scores[i+1]);

0 commit comments

Comments
 (0)