1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

cleanup: arguments

This commit is contained in:
Zeno Rogue
2018-02-26 13:14:20 +01:00
parent bf108b671b
commit 283c6bba39
5 changed files with 91 additions and 67 deletions

View File

@@ -196,8 +196,8 @@ namespace mapstream {
return dir;
}
bool loadMap(const char *fname) {
f = fopen(fname, "rb");
bool loadMap(const string& fname) {
f = fopen(fname.c_str(), "rb");
if(!f) return false;
clearMemory();
int vernum = loadInt();