1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Compilation fixes for MSVS.

Apparently it doesn't like structs converted to class, needs more investigation.
This commit is contained in:
DjWarmonger
2017-03-02 10:58:14 +01:00
parent 0af7ee393b
commit 84bdc5c994
6 changed files with 7 additions and 4 deletions

View File

@@ -8,13 +8,12 @@
*
*/
#pragma once
#include <bits/stl_pair.h>
#include "GameConstants.h"
// for battle stacks' positions
class DLL_LINKAGE BattleHex
struct DLL_LINKAGE BattleHex
{
public:
//public:
si16 hex;
static const si16 INVALID = -1;
enum EDir { RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT, LEFT, TOP_LEFT, TOP_RIGHT };

View File

@@ -10,6 +10,7 @@
#include "StdInc.h"
#include "BattleState.h"
#include "BattleHex.h"
#include <numeric>
#include "VCMI_Lib.h"

View File

@@ -4,6 +4,7 @@
#include "CTownHandler.h"
#include "VCMI_Lib.h"
#include "spells/CSpellHandler.h"
#include "BattleHex.h"
/*
* CObstacleInstance.cpp, part of VCMI engine