diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-04-11 00:22:59 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-04-11 00:22:59 +0000 |
commit | aa602725dd1c02ce21da1ae41944205349d3aed4 (patch) | |
tree | 7c81a86e007778c3bf0f9dd1a074a23dce9cabf9 /games-arcade/skystreets/files | |
parent | Marked stable on hppa. (Manifest recommit) (diff) | |
download | gentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.tar.gz gentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.tar.bz2 gentoo-2-aa602725dd1c02ce21da1ae41944205349d3aed4.zip |
patch for allowing play of individual levels (bug #47441)
Diffstat (limited to 'games-arcade/skystreets/files')
-rw-r--r-- | games-arcade/skystreets/files/levels.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-arcade/skystreets/files/levels.patch b/games-arcade/skystreets/files/levels.patch new file mode 100644 index 000000000000..c44b64a16295 --- /dev/null +++ b/games-arcade/skystreets/files/levels.patch @@ -0,0 +1,20 @@ +--- levels.cpp.orig 2004-04-10 17:12:38.000000000 -0700 ++++ levels.cpp 2004-04-10 17:12:56.000000000 -0700 +@@ -45,11 +45,13 @@ + + bool Level::initialize(char *filename) + { +- +- strcpy(fname, basePath); +- strcat(fname, filename); ++ strcpy(fname, filename); + data = fopen(fname, "r"); +-// printf("Attempting to load %s\n", fname ++ if (data == NULL) { //try the other path ++ strcpy(fname, basePath); ++ strcat(fname, filename); ++ data = fopen(fname, "r"); ++ } + if (data == NULL) { //try the other path + printf("File not found; creating new\n"); + maxFuel = 10000; |