Skip to content

Commit 9e5e937

Browse files
committed
Switch from impossible to raw_print for 'Cannot open record file!' errors.
1 parent 910f913 commit 9e5e937

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/evilhack-changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -3451,4 +3451,6 @@ The following changes to date are:
34513451
destroyed while reading it
34523452
- Fix: force steed dismount if steed becomes hostile from the player
34533453
wielding or wearing a bane artifact vs the steed
3454+
- Switch from impossible to raw_print for 'Cannot open record file!'
3455+
errors
34543456

src/mplayer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ char *nam;
221221
; /* count the number of names in the list */
222222

223223
Strcpy(nam, (In_endgame(&u.uz) && ttname != 0)
224-
? ttname : mp_names[rn2(ncnt)]);
224+
? ttname : mp_names[rn2(ncnt)]);
225225
Strcat(nam, " the ");
226226
Strcat(nam, rank_of_mplayer((int) mtmp->m_lev, mtmp,
227227
(boolean) mtmp->female));

src/topten.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ get_rnd_toptenentry()
14511451

14521452
rfile = fopen_datafile(RECORD, "r", SCOREPREFIX);
14531453
if (!rfile) {
1454-
impossible("Cannot open record file!");
1454+
raw_print("Cannot open record file!");
14551455
return NULL;
14561456
}
14571457

@@ -1516,7 +1516,7 @@ boolean unique; /* don't accept a name that's already in use on the level */
15161516

15171517
rfile = fopen_datafile(RECORD, "r", SCOREPREFIX);
15181518
if (!rfile) {
1519-
impossible("get_rnd_tt_name: Cannot open record file!");
1519+
raw_print("get_rnd_tt_name: Cannot open record file!");
15201520
return (char *) 0;
15211521
}
15221522

0 commit comments

Comments
 (0)