|
@@ -525,7 +525,7 @@ void CGTownInstance::onHeroLeave(const CGHeroInstance * h) const
|
|
|
if (visitingHero == h)
|
|
|
{
|
|
|
cb->stopHeroVisitCastle(this, h);
|
|
|
- logGlobal->warnStream() << h->name << " correctly left town " << name;
|
|
|
+ //logGlobal->warnStream() << h->name << " correctly left town " << name;
|
|
|
}
|
|
|
else
|
|
|
logGlobal->warnStream() << "Warning, " << h->name << " tries to leave the town " << name << " but hero is not inside.";
|
|
@@ -912,12 +912,13 @@ bool CGTownInstance::addBonusIfBuilt(BuildingID building, Bonus::BonusType type,
|
|
|
|
|
|
void CGTownInstance::setVisitingHero(CGHeroInstance *h)
|
|
|
{
|
|
|
- if (!(!!visitingHero == !h))
|
|
|
- {
|
|
|
- logGlobal->warnStream() << boost::format("Hero visiting town %s is %s ") % name % (visitingHero.get() ? visitingHero->name : "NULL");
|
|
|
- logGlobal->warnStream() << boost::format("New hero will be %s ") % (h ? h->name : "NULL");
|
|
|
- assert(!!visitingHero == !h);
|
|
|
- }
|
|
|
+ //if (!(!!visitingHero == !h))
|
|
|
+ //{
|
|
|
+ // logGlobal->warnStream() << boost::format("Hero visiting town %s is %s ") % name % (visitingHero.get() ? visitingHero->name : "NULL");
|
|
|
+ // logGlobal->warnStream() << boost::format("New hero will be %s ") % (h ? h->name : "NULL");
|
|
|
+ //
|
|
|
+ //}
|
|
|
+ assert(!!visitingHero == !h);
|
|
|
|
|
|
if(h)
|
|
|
{
|