mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Update SideInBattle.cpp
This commit is contained in:
parent
ec8898a0e7
commit
b4c9b81a33
@ -17,14 +17,17 @@ void SideInBattle::init(const CGHeroInstance * Hero, const CArmedInstance * Army
|
|||||||
{
|
{
|
||||||
hero = Hero;
|
hero = Hero;
|
||||||
armyObject = Army;
|
armyObject = Army;
|
||||||
color = armyObject->getOwner();
|
|
||||||
|
|
||||||
if(armyObject->ID == Obj::CREATURE_GENERATOR1
|
switch(armyObject->ID)
|
||||||
|| armyObject->ID == Obj::CREATURE_GENERATOR2
|
|
||||||
|| armyObject->ID == Obj::CREATURE_GENERATOR3
|
|
||||||
|| armyObject->ID == Obj::CREATURE_GENERATOR4)
|
|
||||||
{
|
{
|
||||||
color = PlayerColor::NEUTRAL;
|
case Obj::CREATURE_GENERATOR1:
|
||||||
|
case Obj::CREATURE_GENERATOR2:
|
||||||
|
case Obj::CREATURE_GENERATOR3:
|
||||||
|
case Obj::CREATURE_GENERATOR4:
|
||||||
|
color = PlayerColor::NEUTRAL;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
color = armyObject->getOwner();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(color == PlayerColor::UNFLAGGABLE)
|
if(color == PlayerColor::UNFLAGGABLE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user