Skip to content

Commit

Permalink
[11086] Store vmap file version magic string in single place.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jan 31, 2011
1 parent a3c2142 commit 42e1c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/game/vmap/TileAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <sstream>
#include <iomanip>

static char const* VMAP_MAGIC = "VMAP003";

using G3D::Vector3;
using G3D::AABox;
using G3D::inf;
Expand Down Expand Up @@ -268,7 +270,7 @@ namespace VMAP
fclose(rf); printf("cmpfail, %s!=%s\n", V, S);return(false); }

READ_OR_RETURN(&ident, 8);
CMP_OR_RETURN(ident, "VMAP003");
CMP_OR_RETURN(ident, VMAP_MAGIC);

// we have to read one int. This is needed during the export and we have to skip it here
uint32 tempNVectors;
Expand Down Expand Up @@ -374,7 +376,7 @@ namespace VMAP
fclose(rf); printf("cmpfail, %s!=%s\n", V, S);return(false); }

READ_OR_RETURN(&ident, 8);
CMP_OR_RETURN(ident, "VMAP003");
CMP_OR_RETURN(ident, VMAP_MAGIC);

// we have to read one int. This is needed during the export and we have to skip it here
uint32 tempNVectors;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11085"
#define REVISION_NR "11086"
#endif // __REVISION_NR_H__

0 comments on commit 42e1c06

Please sign in to comment.