Skip to content

Instantly share code, notes, and snippets.

View DDuarte's full-sized avatar
😴
Dormant

Duarte Duarte DDuarte

😴
Dormant
View GitHub Profile
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index acd71e8..ca33bfc 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -8,7 +8,7 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-message(STATUS "GCC: Enabled c++11 support")
+message(STATUS "GCC: Enabled C++11 support")
@DDuarte
DDuarte / wpp.diff
Created September 6, 2014 20:41
WPP npc trainer flags
diff --git a/WowPacketParser/SQL/Builders/UnitMisc.cs b/WowPacketParser/SQL/Builders/UnitMisc.cs
index 4944c09..74f7f91 100644
--- a/WowPacketParser/SQL/Builders/UnitMisc.cs
+++ b/WowPacketParser/SQL/Builders/UnitMisc.cs
@@ -603,6 +603,48 @@ namespace WowPacketParser.SQL.Builders
return result.Count == 0 ? null : result;
}
+ private static HashSet<string> _professionTrainers = new HashSet<string>
+ {
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index f9c8c80..79dc565 100644
--- a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -2552,7 +2552,7 @@ void World::_UpdateGameTime()
}
/// Shutdown the server
-void World::ShutdownServ(uint32 time, uint32 options, uint8 exitcode)
+void World::ShutdownServ(uint32 time, uint32 options, uint8 exitcode, const std::string& reason)
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
index f7c8003..3a27f59 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
@@ -50,7 +50,7 @@ bool AuctionBotBuyer::Initialize()
//load Check interval
_checkInterval = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYER_RECHECK_INTERVAL) * MINUTE;
- TC_LOG_INFO("ahbot", "AHBot buyer interval between 2 check = %u", _checkInterval);
+ TC_LOG_DEBUG("ahbot", "AHBot buyer interval between 2 check = %u", _checkInterval);
@DDuarte
DDuarte / build.bat
Created August 27, 2014 12:55
TC cmd build
"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe" TrinityCore.sln /nologo /nr:true /p:Configuration=Debug /m:3 /clp:Summary /v:normal /fl /fl1 /fl2 /flp:Summary;Verbosity=normal;LogFile=MSBuild.log /flp1:ErrorsOnly;LogFile=MSBuild.Errors.log /flp2:WarningsOnly;LogFile=MSBuild.Warnings.log
<?xml version="1.0" encoding="ibm850"?>
<DBFilesClient>
<Achievement_Category build="18179">
<index>
<primary>m_ID</primary>
</index>
<field type="int" name="m_ID" />
<field type="int" name="m_parent" />
<field type="string" name="m_name_lang" />
<field type="int" name="m_ui_order" />
@DDuarte
DDuarte / PersistentDictionary.cs
Created March 22, 2014 14:32
PersistentDictionary backed by a SQLite database in C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Community.CsharpSqlite.SQLiteClient;
namespace DBS
{
public class DBFields<T> : IEqualityComparer<T>
{
@DDuarte
DDuarte / gist:6016435
Last active December 19, 2015 20:58
TDB 335.52 -> 335.53 changelog
Commit log from '3875ae0' to 'e4c57d8' (most recent changes are listed on top):
e4c57d8 TDB 335.53 - 2014/03/29
205294b DB/Text: Added the missing page texts for the book "The Archmage Antonidas - Part I"
d8779da DB/Text: Added the missing page texts for the book "Portals are NOT Garbage Bins!"Closes #3362
a3e56b0 Core/Dependencies: Upgrade to jemalloc-3.5.1
f7659e5 Core/Battlegrounds: Fix log errors about creatures not foundMove "Battleground::GetBGCreature: creature not found for BG" error log to INFO level when the caller expects no creatures to be found, like on Battleground startup.
Closes #3538
8c44259 Core/Misc: Fix some static analysis issuesFix uninitialized values, most of which are false positives, always initialized before being accessed.
Add some asserts and additional NULL checks as sanity checks. Use SpellMgr::EnsureSpellInfo() if the spell id is valid and always supposed to return a valid not-NULL SpellInfo* .
30894c2 Quest: Direhorn RaidersRemove duplicate kill credit
@DDuarte
DDuarte / crashfix.diff
Created July 13, 2013 21:55
TC: Fix crash in HandleArenaCaptainCommand
diff --git a/src/server/scripts/Commands/cs_arena.cpp b/src/server/scripts/Commands/cs_arena.cpp
index b631bab..b6a1b27 100644
--- a/src/server/scripts/Commands/cs_arena.cpp
+++ b/src/server/scripts/Commands/cs_arena.cpp
@@ -228,9 +228,9 @@ public:
if (!handler->extractPlayerTarget(nameStr, &target, &targetGuid))
return false;
- ArenaTeam* Arena = sArenaTeamMgr->GetArenaTeamById(teamId);
+ ArenaTeam* arena = sArenaTeamMgr->GetArenaTeamById(teamId);
@DDuarte
DDuarte / 0001-TC-override-support-example.patch
Created July 6, 2013 15:23
TC override support example
From 637b254485b0768a2c74afedc8329b05883c8ba8 Mon Sep 17 00:00:00 2001
From: Nay <[email protected]>
Date: Sat, 6 Jul 2013 16:22:32 +0100
Subject: [PATCH] TC override support example
---
src/server/scripts/Examples/example_spell.cpp | 2 +-
src/server/shared/CompilerDefs.h | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)