mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix build
This commit is contained in:
parent
5118a642bc
commit
ece9982ca0
@ -452,7 +452,7 @@ void CGHeroInstance::onHeroVisit(const CGHeroInstance * h) const
|
||||
//Create a new boat for hero
|
||||
NewObject no;
|
||||
no.ID = Obj::BOAT;
|
||||
no.subID = BoatId(EBoatId::BOAT_NEUTRAL);
|
||||
no.subID = BoatId(EBoatId::CASTLE);
|
||||
no.pos = CGBoat::translatePos(boatPos);
|
||||
|
||||
cb->sendAndApply(&no);
|
||||
|
@ -215,7 +215,7 @@ ESpellCastResult SummonBoatMechanics::applyAdventureEffects(SpellCastEnvironment
|
||||
{
|
||||
NewObject no;
|
||||
no.ID = Obj::BOAT;
|
||||
no.subID = BoatId(EBoatId::BOAT_EVIL);
|
||||
no.subID = BoatId(EBoatId::NECROPOLIS);
|
||||
no.pos = CGBoat::translatePos(summonPos);
|
||||
env->apply(&no);
|
||||
}
|
||||
|
@ -4421,7 +4421,7 @@ bool CGameHandler::hireHero(const CGObjectInstance *obj, ui8 hid, PlayerColor pl
|
||||
//Create a new boat for hero
|
||||
NewObject no;
|
||||
no.ID = Obj::BOAT;
|
||||
no.subID = BoatId(EBoatId::BOAT_NEUTRAL);
|
||||
no.subID = BoatId(EBoatId::CASTLE);
|
||||
no.pos = hr.tile + int3(1,0,0);
|
||||
sendAndApply(&no);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user