mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Fix non pch build (gcc)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "SharedDefines.h"
|
||||
#include <sstream>
|
||||
#include <list>
|
||||
#include <cstring>
|
||||
|
||||
struct ItemLocale;
|
||||
struct ItemTemplate;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "PacketLog.h"
|
||||
#include "Config.h"
|
||||
#include "WorldPacket.h"
|
||||
#include "Timer.h"
|
||||
|
||||
#pragma pack(push, 1)
|
||||
|
||||
|
||||
@@ -252,13 +252,14 @@ class npc_minigob_manabonk : public CreatureScript
|
||||
events.ScheduleEvent(EVENT_BLINK, 3*IN_MILLISECONDS);
|
||||
break;
|
||||
case EVENT_BLINK:
|
||||
{
|
||||
DoCast(me, SPELL_IMPROVED_BLINK);
|
||||
Position pos;
|
||||
me->GetRandomNearPosition(pos, (urand(15, 40)));
|
||||
Position pos = me->GetRandomNearPosition(frand(15, 40));
|
||||
me->GetMotionMaster()->MovePoint(0, pos.m_positionX, pos.m_positionY, pos.m_positionZ);
|
||||
events.ScheduleEvent(EVENT_DESPAWN, 3*IN_MILLISECONDS);
|
||||
events.ScheduleEvent(EVENT_DESPAWN, 3 * IN_MILLISECONDS);
|
||||
events.ScheduleEvent(EVENT_DESPAWN_VISUAL, 2.5*IN_MILLISECONDS);
|
||||
break;
|
||||
}
|
||||
case EVENT_DESPAWN_VISUAL:
|
||||
DoCast(me, SPELL_TELEPORT_VISUAL);
|
||||
break;
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "Cryptography/HMACSHA1.h"
|
||||
#include "Cryptography/BigNumber.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
AuthCrypt::AuthCrypt() :
|
||||
_clientDecrypt(SHA_DIGEST_LENGTH), _serverEncrypt(SHA_DIGEST_LENGTH),
|
||||
_initialized(false)
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "Cryptography/BigNumber.h"
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/crypto.h>
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "SHA1.h"
|
||||
#include "BigNumber.h"
|
||||
#include <cstring>
|
||||
#include <stdarg.h>
|
||||
|
||||
SHA1Hash::SHA1Hash()
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "SHA1.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#ifndef _WARDEN_KEY_GENERATION_H
|
||||
#define _WARDEN_KEY_GENERATION_H
|
||||
|
||||
|
||||
@@ -21,15 +21,16 @@
|
||||
|
||||
#include "CompilerDefs.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cinttypes>
|
||||
#include <climits>
|
||||
|
||||
#if COMPILER == COMPILER_GNU
|
||||
# if !defined(__STDC_FORMAT_MACROS)
|
||||
# define __STDC_FORMAT_MACROS
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <cstddef>
|
||||
#include <cinttypes>
|
||||
|
||||
#define TRINITY_LITTLEENDIAN 0
|
||||
#define TRINITY_BIGENDIAN 1
|
||||
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
*/
|
||||
|
||||
#include <sstream>
|
||||
#if PLATFORM == PLATFORM_WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "AppenderConsole.h"
|
||||
#include "Config.h"
|
||||
#include "Util.h"
|
||||
|
||||
#if PLATFORM == PLATFORM_WINDOWS
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
AppenderConsole::AppenderConsole(uint8 id, std::string const& name, LogLevel level, AppenderFlags flags):
|
||||
Appender(id, name, APPENDER_CONSOLE, level, flags), _colored(false)
|
||||
|
||||
@@ -21,8 +21,15 @@
|
||||
#include "utf8.h"
|
||||
#include "SFMT.h"
|
||||
#include "Errors.h" // for ASSERT
|
||||
#include <stdarg.h>
|
||||
#include <boost/thread/tss.hpp>
|
||||
|
||||
#if PLATFORM == PLATFORM_UNIX
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
static boost::thread_specific_ptr<SFMTRand> sfmtRand;
|
||||
|
||||
static SFMTRand* GetRng()
|
||||
|
||||
Reference in New Issue
Block a user