Make sure the check of the existance of the name appends the .gz when needed.

This commit is contained in:
Mark de Wever 2007-12-15 11:29:06 +00:00
parent b3dae550b0
commit eba18297df

View file

@ -726,6 +726,10 @@ bool save_game_exists(const std::string& name)
std::string fname = name;
replace_space2underbar(fname);
if(preferences::compress_saves()) {
fname += ".gz";
}
return file_exists(get_saves_dir() + "/" + fname);
}