Renamed levels.dat to map.dat

This commit is contained in:
Rob Pearce 2008-11-18 22:30:43 +00:00
parent ae07b28313
commit 9ae8702bee
5 changed files with 11 additions and 6 deletions

5
defs.h
View File

@ -3,6 +3,11 @@
#include <SDL_mixer.h>
/* files */
#define FILE_LEVELMAP "map.dat"
/* Macros */
//#define OPENGL

2
edit.c
View File

@ -114,7 +114,7 @@ int main (int argc, char **argv) {
if (loadlevellist()) {
printf("Error loading level list from levels.dat.\n");
printf("Error loading level list from %s.\n", FILE_LEVELMAP);
return 1;
}

2
rc.c
View File

@ -272,7 +272,7 @@ int main (int argc, char **argv) {
}
if (loadlevellist()) {
printf("Error loading level list from levels.dat.\n");
printf("Error loading level list from %s.\n",FILE_LEVELMAP);
return 1;
}

View File

@ -2941,10 +2941,10 @@ int savelevellist(void) {
char filename[BUFLEN];
FILE *f;
int i;
sprintf(filename, "%s/levels.dat",datadir);
sprintf(filename, "%s/%s",datadir,FILE_LEVELMAP);
f = fopen(filename,"w");
if (!f) {
printf("error writing to levels.dat\n");
printf("error writing to %s\n",FILE_LEVELMAP);
return B_FALSE;
}
@ -2964,10 +2964,10 @@ int loadlevellist(void) {
char buf[BUFLEN];
char *p;
sprintf(filename, "%s/levels.dat",datadir);
sprintf(filename, "%s/%s",datadir, FILE_LEVELMAP);
f = fopen(filename,"r");
if (!f) {
printf("Error opening levels data file\n");
printf("Error opening %s\n",FILE_LEVELMAP);
exit(1);
}
// format is: