mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
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:
@@ -5,7 +5,7 @@
|
||||
#include "DetourNavMesh.h"
|
||||
|
||||
const uint32 MMAP_MAGIC = 0x4d4d4150; // 'MMAP'
|
||||
#define MMAP_VERSION 5
|
||||
#define MMAP_VERSION 6
|
||||
|
||||
struct MmapTileHeader
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
#define MMAP_MAGIC 0x4d4d4150 // 'MMAP'
|
||||
#define MMAP_VERSION 5
|
||||
#define MMAP_VERSION 6
|
||||
|
||||
struct MmapTileHeader
|
||||
{
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user