Skip to content

Instantly share code, notes, and snippets.

+ [9995] c0f1724f71cd1be8479163e6fee11d199c58523b map api
+ [10002] 8f2b05c0959cb38155d227efe8e9d0a8ce52002c map api
+ [10161] 32c1fe65b247e3ff51af16d3e19e09c5585cd31d vmaps dep bzip2
+ [10162] d3a626efbb90ee48c315ce5533de0d7f5cf239fd vmaps dep libmpq
+ [10163] f9b06d9b2c406a29b076db44e708a2dad4ac7e8d vmaps v3 extractor not tested on *expansion*.mpq
+ [10164] 52a0d242272665663d4c2752d91b3f17977ba860 vmaps v3 assembler
- [s0158] 43694467bea190b0e5d7690381fb34b4b14c9bb2 revert getheight calc
+ [10165] 76676ba0e5c16da3595a9b1e948f4b7eeadfa8d2 vmaps v3 review Unit::RemoveAurasWithAttrubute
+ [10166] 6fa16c6a5589b5bf772c75b0e0efc2f774ab4fcf drop stormlib
+ [10167] b55e1b51648e0a5ec433189a833c22d30455287a vmaps v3
@vermie
vermie / gist:842876
Created February 24, 2011 21:00
check tile exists
diff --git a/src/game/PathFinder.cpp b/src/game/PathFinder.cpp
index d343503..082c6dd 100644
--- a/src/game/PathFinder.cpp
+++ b/src/game/PathFinder.cpp
@@ -81,7 +81,8 @@ bool PathInfo::Update(const float destX, const float destY, const float destZ, b
PATH_DEBUG("++ PathInfo::Update() for %u \n", m_sourceUnit->GetGUID());
// make sure navMesh works - we can run on map w/o mmap
- if (!m_navMesh || !m_navMeshQuery || m_sourceUnit->hasUnitState(UNIT_STAT_IGNORE_PATHFINDING))
+ if (m_sourceUnit->hasUnitState(UNIT_STAT_IGNORE_PATHFINDING) ||
@vermie
vermie / gist:861674
Created March 9, 2011 04:02
mmaps_one patch ONE
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 8a45c6b..138ce3c 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11942,10 +11942,9 @@ void Unit::SendMonsterMoveByPath(Path<Elem,Node> const& path, uint32 start, uint
return;
}
- uint32 packSize = (flags & SplineFlags(SPLINEFLAG_FLYING | SPLINEFLAG_CATMULLROM)) ? pathSize*4*3 : 4*3 + (pathSize-1)*4;
- WorldPacket data( SMSG_MONSTER_MOVE, (GetPackGUID().size()+1+4+4+4+4+1+4+4+4+packSize) );
@vermie
vermie / profile.xml
Created May 13, 2011 01:56
Profiling for mangos
<region name="default">
<scope name="World::Update" count="153" recurses="0" time="23036000">
<region name="default">
<scope name="World::UpdateSessions" count="153" recurses="0" time="922000"/>
</region>
</scope>
</region>
@vermie
vermie / gist:1332816
Created November 2, 2011 03:55
path diagram
A @
XXXXXXXXXXXXXXXXXX
X
X Z
B C#
monster = @, player = #, obstacle = X
nice path: @ -> A -> B -> C
actual path: @ -> A -> B -> Z
@vermie
vermie / gist:1371164
Created November 16, 2011 20:01
more debugging
diff --git a/Client/World/Network/WorldSocket.cs b/Client/World/Network/WorldSocket.cs
index 6c3df10..0d6cbd8 100644
--- a/Client/World/Network/WorldSocket.cs
+++ b/Client/World/Network/WorldSocket.cs
@@ -8,6 +8,7 @@ using Client.Authentication;
using Client.UI;
using Client.Chat;
using Client.Chat.Definitions;
+using System.Diagnostics;
############## details ################
============== structure ================
repository
a tree of objects which are under version control
objects are any of the following:
blob: binary data (usually a file)
tree: points to blobs (files) and other trees (subdirectories)
commit: points to a tree (your projects root directory), and points to the parent commit(s)
commit 8f235b728ee99be69656ec7674fe160dab64feaf
Author: faramir118 <[email protected]>
Date: Sat Feb 4 13:59:54 2012 -0600
guard against concurrent read/write access to navMesh
Need to add -DMMAP_CONCURRENCY=1 to cmake
visual studio support coming later
diff --git a/src/game/CMakeLists.txt b/src/game/CMakeLists.txt
@vermie
vermie / gist:3021844
Created June 30, 2012 02:17
linear spline offset
diff --git a/src/game/movement/packet_builder.cpp b/src/game/movement/packet_builder.cpp
index 2e7b4f9..50a93b4 100644
--- a/src/game/movement/packet_builder.cpp
+++ b/src/game/movement/packet_builder.cpp
@@ -99,16 +99,16 @@ namespace Movement
uint32 last_idx = spline.getPointCount() - 3;
const Vector3 * real_path = &spline.getPoint(1);
+ Vector3 dest = real_path[last_idx];
data << last_idx;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
namespace Expressions
{
public static class Coalesce
{