diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-28 16:16:30 +0000 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-03-28 16:16:30 +0000 |
commit | dfbdb67bcfa76fc948d9b2aba1daf9ce2d2037cc (patch) | |
tree | 9388e567fb53f3dbe839a27a8ce7dfe427641ad4 | |
parent | 79b67984f1a6637ecf6b913d25a98a6563359504 (diff) | |
download | FreeBSD-ports-dfbdb67bcfa76fc948d9b2aba1daf9ce2d2037cc.zip FreeBSD-ports-dfbdb67bcfa76fc948d9b2aba1daf9ce2d2037cc.tar.gz |
- Fix build on CURRENT
-rw-r--r-- | games/hyperrogue/files/patch-graph.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/hyperrogue/files/patch-graph.cpp b/games/hyperrogue/files/patch-graph.cpp new file mode 100644 index 0000000..d5049e1 --- /dev/null +++ b/games/hyperrogue/files/patch-graph.cpp @@ -0,0 +1,11 @@ +--- graph.cpp.orig 2016-08-26 16:36:03 UTC ++++ graph.cpp +@@ -5595,7 +5595,7 @@ bool loadMusicInfo(string dir) { + for(int i=0; i<size(dir); i++) if(dir[i] == '/' || dir[i] == '\\') + dir2 = dir.substr(0, i+1); + char buf[1000]; +- while(fgets(buf, 800, f) > 0) { ++ while(fgets(buf, 800, f) != NULL) { + for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0; + if(buf[0] == '[' && buf[3] == ']') { + int id = (buf[1] - '0') * 10 + buf[2] - '0'; |