From a113a8d289ec77aaf428f19dd8193b7f77820fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Sun, 8 Feb 2009 16:36:53 +0000 Subject: [PATCH] * patch update from Dikamilo --- AI/GeniusAI/CGeniusAI.cpp | 2 +- AI/GeniusAI/CGeniusAI.h | 28 ++++++++++++++-------------- AI/GeniusAI/genius.cbp | 17 ++++++++++------- client/VCMI_client.cbp | 17 ++++++++++------- lib/VCMI_lib.cbp | 12 ++++++------ server/VCMI_server.cbp | 17 ++++++++++------- vcmi.workspace | 4 ++-- 7 files changed, 53 insertions(+), 44 deletions(-) diff --git a/AI/GeniusAI/CGeniusAI.cpp b/AI/GeniusAI/CGeniusAI.cpp index 300f29920..d6e3516e8 100644 --- a/AI/GeniusAI/CGeniusAI.cpp +++ b/AI/GeniusAI/CGeniusAI.cpp @@ -14,7 +14,7 @@ using namespace boost::lambda; using namespace std; using namespace GeniusAI; -#if defined (_MSC_VER) && (_MSC_VER >= 1020) && (__MINGW32__) +#if defined (_MSC_VER) && (_MSC_VER >= 1020) || (__MINGW32__) #include #endif diff --git a/AI/GeniusAI/CGeniusAI.h b/AI/GeniusAI/CGeniusAI.h index 13dbaf919..a77a4aea5 100644 --- a/AI/GeniusAI/CGeniusAI.h +++ b/AI/GeniusAI/CGeniusAI.h @@ -81,16 +81,16 @@ private: }; enum EActionType { - action_cancel = 0, // Cancel BattleAction - action_cast_spell = 1, // Hero cast a spell - action_walk = 2, // Walk - action_defend = 3, // Defend - action_retreat = 4, // Retreat from the battle - action_surrender = 5, // Surrender - action_walk_and_attack = 6, // Walk and Attack - action_shoot = 7, // Shoot - action_wait = 8, // Wait - action_catapult = 9, // Catapult + action_cancel = 0, // Cancel BattleAction + action_cast_spell = 1, // Hero cast a spell + action_walk = 2, // Walk + action_defend = 3, // Defend + action_retreat = 4, // Retreat from the battle + action_surrender = 5, // Surrender + action_walk_and_attack = 6, // Walk and Attack + action_shoot = 7, // Shoot + action_wait = 8, // Wait + action_catapult = 9, // Catapult action_monster_casts_spell = 10 // Monster casts a spell (i.e. Faerie Dragons) }; struct SCreatureCasualties @@ -118,10 +118,10 @@ private: bool m_bIsAttacker; ICallback *m_cb; CCreatureSet *m_army1; - CCreatureSet *m_army2; - int3 m_tile; + CCreatureSet *m_army2; + int3 m_tile; CGHeroInstance *m_hero1; - CGHeroInstance *m_hero2; + CGHeroInstance *m_hero2; bool m_side; // statistics @@ -174,7 +174,7 @@ private: /** * Only for debug purpose. */ - void CBattleLogic::PrintBattleAction(const BattleAction &action); + void PrintBattleAction(const BattleAction &action); }; class CGeniusAI : public CGlobalAI diff --git a/AI/GeniusAI/genius.cbp b/AI/GeniusAI/genius.cbp index bbe10c0b7..792be6722 100644 --- a/AI/GeniusAI/genius.cbp +++ b/AI/GeniusAI/genius.cbp @@ -9,9 +9,9 @@ @@ -59,7 +63,6 @@ - diff --git a/client/VCMI_client.cbp b/client/VCMI_client.cbp index 10625f8ec..97d7f9bc1 100644 --- a/client/VCMI_client.cbp +++ b/client/VCMI_client.cbp @@ -9,9 +9,9 @@ @@ -57,7 +61,6 @@ - diff --git a/lib/VCMI_lib.cbp b/lib/VCMI_lib.cbp index 1a30a12e1..f59a312f5 100644 --- a/lib/VCMI_lib.cbp +++ b/lib/VCMI_lib.cbp @@ -9,9 +9,9 @@