This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <vector> | |
#include <assert.h> | |
#include <memory> | |
#include <algorithm> | |
#include <stdio.h> | |
#include <conio.h> | |
#include "gtest.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ACPI</key> | |
<dict> | |
<key>Add</key> | |
<array> | |
<dict> | |
<key>Enabled</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <size_t N> struct index_tuple_from_N; | |
template <size_t... I> struct index_tuple_t { | |
enum { | |
count = sizeof... (I), | |
last = count - 1, | |
first = 0, | |
}; | |
using grow = index_tuple_t < I ..., last + 1 > ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Node { | |
}; | |
template<class T> | |
struct ReadOnly { | |
T* _val; | |
friend class Writeable<T>; | |
public: | |
//ReadOnly(T& v) : _val(&v) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Represents abstract environment for objects that inside */ | |
struct IMoveEnvironment | |
{ | |
/** Converts relative object position that environment contains into global position | |
Takes 'outGlobal' parameter as local object position offset and converts it into global position */ | |
virtual void ComputeGlobalPosition(Vector3& outGlobal) = 0; | |
/** Converts global into relative object position */ | |
virtual void ComputeLocalPosition(Vector3& outLocal) = 0; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/AggressorAI.cpp b/src/game/AggressorAI.cpp | |
index 03f0b75..3c812de 100644 | |
--- a/src/game/AggressorAI.cpp | |
+++ b/src/game/AggressorAI.cpp | |
@@ -127,8 +127,6 @@ AggressorAI::UpdateAI(const uint32 /*diff*/) | |
return; | |
i_victimGuid = m_creature->getVictim()->GetObjectGuid(); | |
- | |
- DoMeleeAttackIfReady(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1466,11 +1466,11 @@ void ObjectMgr::LoadGameObjects() | |
{ | |
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) have invalid displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId); | |
continue; | |
} | |
- GameObjectData& data = mGameObjectDataMap[guid]; | |
+ GameObjectData data; | |
data.id = entry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp | |
index b5743f7..8d0a282 100644 | |
--- a/src/game/WaypointMovementGenerator.cpp | |
+++ b/src/game/WaypointMovementGenerator.cpp | |
@@ -75,31 +75,30 @@ void WaypointMovementGenerator<Creature>::LoadPath(Creature &creature) | |
return; | |
} | |
} | |
- | |
- StartMoveNow(creature); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp | |
index e9205a5..bf282e6 100644 | |
--- a/src/game/Creature.cpp | |
+++ b/src/game/Creature.cpp | |
@@ -509,6 +509,8 @@ void Creature::Update(uint32 update_diff, uint32 diff) | |
} | |
case CORPSE: | |
{ | |
+ Unit::Update(update_diff, diff); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Extract() | |
{ | |
List<Vector3> points; | |
uint32 splineflags; | |
if (splineflags & (Flying | Catmullrom)) | |
{ | |
if (splineflags & Cyclic) // 0x00080000 | |
{ | |
points.RemoveAT(0); |
NewerOlder