Mercurial > hg > early-roguelike
diff urogue/state.c @ 263:08057be02f47
UltraRogue: make scorefile location configurable.
author | John "Elwin" Edwards |
---|---|
date | Wed, 15 Feb 2017 20:38:12 -0500 |
parents | c7c6c5a7d840 |
children | ebf49a933e51 |
line wrap: on
line diff
--- a/urogue/state.c Tue Feb 14 20:42:33 2017 -0500 +++ b/urogue/state.c Wed Feb 15 20:38:12 2017 -0500 @@ -1436,7 +1436,8 @@ // The file_name stored in the file no longer replaces its actual name. ur_free(str); str = ur_read_string(savef); - strcpy(score_file,str); + if (!use_savedir) + strcpy(score_file,str); ur_free(str); DUMPSTRING