Mercurial > hg > early-roguelike
comparison rogue5/save.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 3d4252fa2ed3 |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
173 int lines, cols; | 173 int lines, cols; |
174 | 174 |
175 if (strcmp(file, "-r") == 0) | 175 if (strcmp(file, "-r") == 0) |
176 file = file_name; | 176 file = file_name; |
177 | 177 |
178 md_tstphold(); | 178 md_tstphold(); |
179 | 179 |
180 if ((inf = fopen(file,"r")) == NULL) | 180 if ((inf = fopen(file,"r")) == NULL) |
181 { | 181 { |
182 /* If a system savefile doesn't exist, start a new game. */ | 182 /* If a system savefile doesn't exist, start a new game. */ |
183 if (use_savedir && errno == ENOENT) | 183 if (use_savedir && errno == ENOENT) |