1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Compile fix. Keep StdInc consistent.

This commit is contained in:
DjWarmonger 2012-11-21 09:13:33 +00:00
parent 53169abea7
commit 9d68b9d58d
9 changed files with 5 additions and 8 deletions

View File

@ -1289,6 +1289,7 @@ AttackableTiles CBattleInfoCallback::getPotentiallyAttackableHexes(const CStack*
const int WN = GameConstants::BFIELD_WIDTH;
ui16 hex = (attackerPos != BattleHex::INVALID) ? attackerPos.hex : attacker->position.hex; //real or hypothetical (cursor) position
//FIXME: dragons or cerbers can rotate before attack, making their base hex different (#1124)
if (attacker->hasBonusOfType(Bonus::ATTACKS_ALL_ADJACENT))
{
boost::copy(attacker->getSurroundingHexes(attackerPos), vstd::set_inserter(at.hostileCreaturePositions));

View File

@ -1,3 +1,4 @@
#include "StdInc.h"
#include "CMap.h"
#include "../CArtHandler.h"

View File

@ -11,8 +11,6 @@
#pragma once
#include "StdInc.h"
#include "../ConstTransitivePtr.h"
#include "../CObjectHandler.h"
#include "../ResourceSet.h"

View File

@ -1,3 +1,4 @@
#include "StdInc.h"
#include "CMapInfo.h"
#include "../StartInfo.h"

View File

@ -1,7 +1,5 @@
#pragma once
#include "StdInc.h"
// Forward class declarations aren't enough here. The compiler
// generated CMapInfo d-tor, generates the unique_ptr d-tor as well here
// as a inline method. The unique_ptr d-tor requires a complete type. Defining

View File

@ -1,3 +1,4 @@
#include "StdInc.h"
#include "CMapService.h"
#include "../Filesystem/CResourceLoader.h"

View File

@ -11,8 +11,6 @@
#pragma once
#include "StdInc.h"
class CMap;
class CMapHeader;
class CInputStream;

View File

@ -1,3 +1,4 @@
#include "StdInc.h"
#include "CMapGenOptions.h"
CMapGenOptions::CMapGenOptions() : width(72), height(72), hasTwoLevels(true),

View File

@ -11,8 +11,6 @@
#pragma once
#include "StdInc.h"
namespace EWaterContent
{
enum EWaterContent