mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 18:59:08 +00:00
Fixed: Windows compilation problems
This commit is contained in:
parent
8a25bac7d3
commit
24f94426c7
11 changed files with 30 additions and 22 deletions
|
@ -33,7 +33,6 @@
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
# include <process.h>
|
# include <process.h>
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
# include <windows.h>
|
|
||||||
#else
|
#else
|
||||||
# include <cmath>
|
# include <cmath>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
@ -43,6 +42,10 @@
|
||||||
#include "string_common.h"
|
#include "string_common.h"
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
|
struct nameHICON__;
|
||||||
|
typedef struct HICON__ *HICON;
|
||||||
|
struct nameHWND__;
|
||||||
|
typedef struct HWND__ *HWND;
|
||||||
typedef HWND nlWindow;
|
typedef HWND nlWindow;
|
||||||
#define EmptyWindow NULL
|
#define EmptyWindow NULL
|
||||||
#elif defined(NL_OS_MAC)
|
#elif defined(NL_OS_MAC)
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#define __forceinline
|
#define __forceinline
|
||||||
#elif defined(NL_OS_WINDOWS)
|
#elif defined(NL_OS_WINDOWS)
|
||||||
# define NOMINMAX
|
|
||||||
# include <windows.h>
|
|
||||||
# ifdef NL_NO_ASM
|
# ifdef NL_NO_ASM
|
||||||
# include <intrin.h>
|
# include <intrin.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
|
@ -24,11 +24,6 @@
|
||||||
|
|
||||||
#include "nel/misc/types_nl.h"
|
#include "nel/misc/types_nl.h"
|
||||||
|
|
||||||
#if defined(NL_OS_WINDOWS) && defined(_WINDOWS)
|
|
||||||
# define NOMINMAX
|
|
||||||
# include <windows.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "nel/misc/config_file.h"
|
#include "nel/misc/config_file.h"
|
||||||
#include "nel/misc/entity_id.h"
|
#include "nel/misc/entity_id.h"
|
||||||
#include "nel/misc/variable.h"
|
#include "nel/misc/variable.h"
|
||||||
|
|
|
@ -18,13 +18,8 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
|
# define NOMINMAX
|
||||||
#if !defined(NL_COMP_VC9)
|
# include <windows.h>
|
||||||
# if !defined(NL_COMP_VC8)
|
|
||||||
# include <winsock2.h>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#elif defined NL_OS_UNIX
|
#elif defined NL_OS_UNIX
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
@ -61,3 +61,8 @@
|
||||||
#include "nel/misc/vector.h"
|
#include "nel/misc/vector.h"
|
||||||
#include "nel/misc/rgba.h"
|
#include "nel/misc/rgba.h"
|
||||||
#include "nel/misc/file.h"
|
#include "nel/misc/file.h"
|
||||||
|
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
#define NOMINMAX
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
|
@ -49,3 +49,8 @@
|
||||||
#include "nel/misc/stream.h"
|
#include "nel/misc/stream.h"
|
||||||
#include "nel/misc/path.h"
|
#include "nel/misc/path.h"
|
||||||
#include "nel/misc/string_common.h"
|
#include "nel/misc/string_common.h"
|
||||||
|
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
#define NOMINMAX
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
|
@ -40,6 +40,11 @@
|
||||||
// Tempyoyo.
|
// Tempyoyo.
|
||||||
#include <nel/3d/height_map.h>
|
#include <nel/3d/height_map.h>
|
||||||
|
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
#define NOMINMAX
|
||||||
|
#include <windows.h>
|
||||||
|
#endif // NL_OS_WINDOWS
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
using namespace NL3D;
|
using namespace NL3D;
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "nel/misc/variable.h"
|
#include "nel/misc/variable.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
using namespace NLMISC;
|
||||||
using namespace PHRASE_UTILITIES;
|
using namespace PHRASE_UTILITIES;
|
||||||
|
|
||||||
CVariable<bool> ResPawnPVPInSameRegionForbiden("egs","ResPawnPVPInSameRegionForbiden", "When character dead in PvP Faction, it can't respawn in same same region of it's death", true, 0, true );
|
CVariable<bool> ResPawnPVPInSameRegionForbiden("egs","ResPawnPVPInSameRegionForbiden", "When character dead in PvP Faction, it can't respawn in same same region of it's death", true, 0, true );
|
||||||
|
|
|
@ -21,15 +21,12 @@
|
||||||
#include "game_share/effect_families.h"
|
#include "game_share/effect_families.h"
|
||||||
#include "creature_manager/creature.h"
|
#include "creature_manager/creature.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
using namespace NLMISC;
|
|
||||||
|
|
||||||
class CSEffect;
|
class CSEffect;
|
||||||
class CCharacter;
|
class CCharacter;
|
||||||
class CTotemEffect;
|
class CTotemEffect;
|
||||||
class CFileDescription;
|
class CFileDescription;
|
||||||
|
|
||||||
extern CVariable<uint32> TotemBuildTime;
|
extern NLMISC::CVariable<uint32> TotemBuildTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Totem Base with its effects on faction PVP
|
* A Totem Base with its effects on faction PVP
|
||||||
|
@ -46,7 +43,7 @@ public :
|
||||||
CTotemBase( std::string const& name );
|
CTotemBase( std::string const& name );
|
||||||
|
|
||||||
/// Return all effects a given character gets on this totem
|
/// Return all effects a given character gets on this totem
|
||||||
void getTotemEffect( CCharacter* user, vector<CSEffect*>& outEffects ) const;
|
void getTotemEffect( CCharacter* user, std::vector<CSEffect*>& outEffects ) const;
|
||||||
|
|
||||||
/// Start building this totem
|
/// Start building this totem
|
||||||
void startBuilding( CCharacter* builder );
|
void startBuilding( CCharacter* builder );
|
||||||
|
@ -127,13 +124,13 @@ private :
|
||||||
PVP_CLAN::TPVPClan _OwnerFaction;
|
PVP_CLAN::TPVPClan _OwnerFaction;
|
||||||
|
|
||||||
/// Neighbor regions
|
/// Neighbor regions
|
||||||
vector<TAIAlias> _Neighbours;
|
std::vector<TAIAlias> _Neighbours;
|
||||||
|
|
||||||
/// Effect of the totem base
|
/// Effect of the totem base
|
||||||
EFFECT_FAMILIES::TEffectFamily _TotemEffect;
|
EFFECT_FAMILIES::TEffectFamily _TotemEffect;
|
||||||
|
|
||||||
/// Used BotObject
|
/// Used BotObject
|
||||||
CRefPtr<CCreature> _BotObject;
|
NLMISC::CRefPtr<CCreature> _BotObject;
|
||||||
|
|
||||||
/// Is the building finished ? True if no totem
|
/// Is the building finished ? True if no totem
|
||||||
bool _IsBuildingFinished;
|
bool _IsBuildingFinished;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "mirror_service.h"
|
#include "mirror_service.h"
|
||||||
|
|
||||||
using namespace NLMISC;
|
using namespace NLMISC;
|
||||||
|
using namespace NLNET;
|
||||||
using namespace NLGEORGES;
|
using namespace NLGEORGES;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,9 @@
|
||||||
#include "mirror_service.h"
|
#include "mirror_service.h"
|
||||||
#include "tick_proxy.h"
|
#include "tick_proxy.h"
|
||||||
|
|
||||||
|
using namespace NLMISC;
|
||||||
|
using namespace NLNET;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
extern NLMISC::CLog _QuickLog;
|
extern NLMISC::CLog _QuickLog;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue