@@ -128,8 +128,8 @@ void nobHarborBuilding::DestroyBuilding()
128128
129129 soldier.CancelSeaAttack ();
130130 RTTR_Assert (!soldier.GetAttackedGoal ());
131- RTTR_Assert (soldier.HasNoHome ());
132- RTTR_Assert (soldier.HasNoGoal ());
131+ RTTR_Assert (! soldier.GetHomeBld ());
132+ RTTR_Assert (! soldier.GetGoal ());
133133 soldier.StartWandering ();
134134 soldier.StartWalking (RANDOM_ENUM (Direction));
135135 }
@@ -1032,7 +1032,7 @@ void nobHarborBuilding::ReceiveGoodsFromShip(std::list<std::unique_ptr<noFigure>
10321032 {
10331033 figure->SetGoalTonullptr ();
10341034 AddFigure (std::move (figure), true );
1035- } else if (figure->HasNoGoal ())
1035+ } else if (! figure->GetGoal ())
10361036 {
10371037 AddDependentFigure (*figure); // No goal? We take it
10381038 AddFigure (std::move (figure), true );
@@ -1212,8 +1212,8 @@ void nobHarborBuilding::AddSeaAttacker(std::unique_ptr<nofAttacker> attacker)
12121212 // notify target about noShow, notify home that soldier wont return, add to inventory
12131213 attacker->SeaAttackFailedBeforeLaunch (); // set state, remove target & home
12141214 RTTR_Assert (!attacker->GetAttackedGoal ());
1215- RTTR_Assert (attacker->HasNoHome ());
1216- RTTR_Assert (attacker->HasNoGoal ());
1215+ RTTR_Assert (! attacker->GetHomeBld ());
1216+ RTTR_Assert (! attacker->GetGoal ());
12171217 AddFigure (std::move (attacker), true );
12181218 return ;
12191219 }
@@ -1232,7 +1232,7 @@ void nobHarborBuilding::CancelSeaAttacker(nofAttacker* attacker)
12321232 helpers::find_if (soldiers_for_ships, [attacker](const auto & it) { return it.attacker .get () == attacker; });
12331233
12341234 RTTR_Assert (it != soldiers_for_ships.end ());
1235- if (attacker->HasNoGoal ())
1235+ if (! attacker->GetGoal ())
12361236 {
12371237 // No goal? We take it
12381238 AddDependentFigure (*attacker);
0 commit comments