diff options
author | Simon Howard | 2005-08-30 22:15:11 +0000 |
---|---|---|
committer | Simon Howard | 2005-08-30 22:15:11 +0000 |
commit | f51fa9af948a581e291274867439214e5ae3e04f (patch) | |
tree | cd0939472699aebcfd526eca1c82f5047622c2ca /src/w_wad.c | |
parent | a77ebf56c612924bdc3da30ae5f26e41372cac9c (diff) | |
download | chocolate-doom-f51fa9af948a581e291274867439214e5ae3e04f.tar.gz chocolate-doom-f51fa9af948a581e291274867439214e5ae3e04f.tar.bz2 chocolate-doom-f51fa9af948a581e291274867439214e5ae3e04f.zip |
More Windows fixes
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 58
Diffstat (limited to 'src/w_wad.c')
-rw-r--r-- | src/w_wad.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/w_wad.c b/src/w_wad.c index 2d3303cc..1d169f6c 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: w_wad.c 57 2005-08-30 22:11:10Z fraggle $ +// $Id: w_wad.c 58 2005-08-30 22:15:11Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.7 2005/08/30 22:15:11 fraggle +// More Windows fixes +// // Revision 1.6 2005/08/30 22:11:10 fraggle // Windows fixes // @@ -48,7 +51,7 @@ static const char -rcsid[] = "$Id: w_wad.c 57 2005-08-30 22:11:10Z fraggle $"; +rcsid[] = "$Id: w_wad.c 58 2005-08-30 22:15:11Z fraggle $"; #include <ctype.h> @@ -170,6 +173,7 @@ void W_AddFile (char *filename) int length; int startlump; filelump_t* fileinfo; + filelump_t* filerover; FILE *storehandle; // open the file and add to directory @@ -235,12 +239,12 @@ void W_AddFile (char *filename) storehandle = reloadname ? NULL : handle; - for (i=startlump ; i<numlumps ; i++,lump_p++, fileinfo++) + for (i=startlump,filerover=fileinfo ; i<numlumps ; i++,lump_p++, filerover++) { lump_p->handle = storehandle; - lump_p->position = LONG(fileinfo->filepos); - lump_p->size = LONG(fileinfo->size); - strncpy (lump_p->name, fileinfo->name, 8); + lump_p->position = LONG(filerover->filepos); + lump_p->size = LONG(filerover->size); + strncpy (lump_p->name, filerover->name, 8); } if (reloadname) |