blob: c44b64a16295d4dace8009999e0c84c770702e6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
|