Renamed levels.dat to map.dat
This commit is contained in:
parent
ae07b28313
commit
9ae8702bee
5
defs.h
5
defs.h
|
@ -3,6 +3,11 @@
|
||||||
|
|
||||||
#include <SDL_mixer.h>
|
#include <SDL_mixer.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* files */
|
||||||
|
#define FILE_LEVELMAP "map.dat"
|
||||||
|
|
||||||
|
|
||||||
/* Macros */
|
/* Macros */
|
||||||
//#define OPENGL
|
//#define OPENGL
|
||||||
|
|
||||||
|
|
2
edit.c
2
edit.c
|
@ -114,7 +114,7 @@ int main (int argc, char **argv) {
|
||||||
|
|
||||||
|
|
||||||
if (loadlevellist()) {
|
if (loadlevellist()) {
|
||||||
printf("Error loading level list from levels.dat.\n");
|
printf("Error loading level list from %s.\n", FILE_LEVELMAP);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
rc.c
2
rc.c
|
@ -272,7 +272,7 @@ int main (int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loadlevellist()) {
|
if (loadlevellist()) {
|
||||||
printf("Error loading level list from levels.dat.\n");
|
printf("Error loading level list from %s.\n",FILE_LEVELMAP);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
shared.c
8
shared.c
|
@ -2941,10 +2941,10 @@ int savelevellist(void) {
|
||||||
char filename[BUFLEN];
|
char filename[BUFLEN];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int i;
|
int i;
|
||||||
sprintf(filename, "%s/levels.dat",datadir);
|
sprintf(filename, "%s/%s",datadir,FILE_LEVELMAP);
|
||||||
f = fopen(filename,"w");
|
f = fopen(filename,"w");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
printf("error writing to levels.dat\n");
|
printf("error writing to %s\n",FILE_LEVELMAP);
|
||||||
return B_FALSE;
|
return B_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2964,10 +2964,10 @@ int loadlevellist(void) {
|
||||||
char buf[BUFLEN];
|
char buf[BUFLEN];
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
sprintf(filename, "%s/levels.dat",datadir);
|
sprintf(filename, "%s/%s",datadir, FILE_LEVELMAP);
|
||||||
f = fopen(filename,"r");
|
f = fopen(filename,"r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
printf("Error opening levels data file\n");
|
printf("Error opening %s\n",FILE_LEVELMAP);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
// format is:
|
// format is:
|
||||||
|
|
Loading…
Reference in New Issue