Updated Copyright year to 2013
[getmangos.git] / src / game / vmap / VMapDefinitions.h
blob5c0b9f1ffb203736e1e835739c7998e8123b1fee
1 /*
2 * Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef _VMAPDEFINITIONS_H
20 #define _VMAPDEFINITIONS_H
21 #include <cstring>
23 #define LIQUID_TILE_SIZE (533.333f / 128.f)
25 namespace VMAP
27 const char VMAP_MAGIC[] = "VMAP_4.0"; // used in final vmap files
28 const char RAW_VMAP_MAGIC[] = "VMAP004"; // used in extracted vmap files with raw data
30 // defined in TileAssembler.cpp currently...
31 bool readChunk(FILE* rf, char* dest, const char* compare, uint32 len);
34 #ifndef NO_CORE_FUNCS
35 #include "Errors.h"
36 #include "Log.h"
37 #define ERROR_LOG(...) sLog.outError(__VA_ARGS__);
38 #elif defined MMAP_GENERATOR
39 #include <assert.h>
40 #define MANGOS_ASSERT(x) assert(x)
41 #define DEBUG_LOG(...) 0
42 #define DETAIL_LOG(...) 0
43 #define ERROR_LOG(...) do{ printf("ERROR:"); printf(__VA_ARGS__); printf("\n"); } while(0)
44 #else
45 #include <assert.h>
46 #define MANGOS_ASSERT(x) assert(x)
47 #define DEBUG_LOG(...) do{ printf(__VA_ARGS__); printf("\n"); } while(0)
48 #define DETAIL_LOG(...) do{ printf(__VA_ARGS__); printf("\n"); } while(0)
49 #define ERROR_LOG(...) do{ printf("ERROR:"); printf(__VA_ARGS__); printf("\n"); } while(0)
50 #endif
52 #endif // _VMAPDEFINITIONS_H