Correct Nav type for WMO objects (#18364)

* Tools/MMaps: Correct liquid type for WMO objects

* MMaps: Update version to 6
This commit is contained in:
zori
2016-12-03 17:48:55 +01:00
committed by jackpoz
parent 881cd78ae3
commit 0df0cb30ca
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
#include "DetourNavMesh.h"
const uint32 MMAP_MAGIC = 0x4d4d4150; // 'MMAP'
#define MMAP_VERSION 5
#define MMAP_VERSION 6
struct MmapTileHeader
{

View File

@@ -26,7 +26,7 @@
#include <limits.h>
#define MMAP_MAGIC 0x4d4d4150 // 'MMAP'
#define MMAP_VERSION 5
#define MMAP_VERSION 6
struct MmapTileHeader
{

View File

@@ -710,7 +710,7 @@ namespace MMAP
uint8 type = NAV_EMPTY;
// convert liquid type to NavTerrain
switch (liquid->GetType())
switch (liquid->GetType() & 3)
{
case 0:
case 1: