@@ -86,22 +86,22 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
86
86
bool bSuccess = false ;
87
87
strLoc = Localization::Lookup (" TXT_KEY_BUILD_A_CITY_MCFLY_ECONOMIC" );
88
88
bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_ECONOMIC, strLoc.toUTF8 (), 99 );
89
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
89
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
90
90
uiCounselIndex++;
91
91
92
92
strLoc = Localization::Lookup (" TXT_KEY_BUILD_A_CITY_MCFLY_MILITARY" );
93
93
bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_MILITARY, strLoc.toUTF8 (), 99 );
94
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
94
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
95
95
uiCounselIndex++;
96
96
97
97
strLoc = Localization::Lookup (" TXT_KEY_BUILD_A_CITY_MCFLY_SCIENCE" );
98
98
bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 99 );
99
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
99
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
100
100
uiCounselIndex++;
101
101
102
102
strLoc = Localization::Lookup (" TXT_KEY_BUILD_A_CITY_MCFLY_FOREIGN" );
103
103
bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_FOREIGN, strLoc.toUTF8 (), 99 );
104
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
104
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
105
105
uiCounselIndex++;
106
106
107
107
std::stable_sort (&m_aCounsel[0 ], &m_aCounsel[0 ] + m_aCounsel.size (), CounselSort);
@@ -123,7 +123,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
123
123
{
124
124
strLoc = Localization::Lookup (pStrategy->GetAdvisorCounselText ());
125
125
bool bSuccess = SetCounselEntry (uiCounselIndex, pStrategy->GetAdvisor (), strLoc.toUTF8 (), pStrategy->GetAdvisorCounselImportance ());
126
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
126
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
127
127
if (!bSuccess)
128
128
{
129
129
break ;
@@ -143,15 +143,15 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
143
143
if (pMilitaryAI->IsUsingStrategy (eStrategy))
144
144
{
145
145
CvMilitaryAIStrategyXMLEntry* pStrategy = pMilitaryAI->GetMilitaryAIStrategies ()->GetEntry (iStrategiesLoop);
146
- CvAssert (pStrategy != NULL );
146
+ ASSERT (pStrategy != NULL );
147
147
if (pStrategy)
148
148
{
149
149
// if this strategy has an advisor set, then try to add it to the list
150
150
if (pStrategy->GetAdvisor () != NO_ADVISOR_TYPE)
151
151
{
152
152
strLoc = Localization::Lookup (pStrategy->GetAdvisorCounselText ());
153
153
bool bSuccess = SetCounselEntry (uiCounselIndex, pStrategy->GetAdvisor (), strLoc.toUTF8 (), pStrategy->GetAdvisorCounselImportance ());
154
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
154
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
155
155
if (!bSuccess)
156
156
{
157
157
break ;
@@ -181,7 +181,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
181
181
strLoc = Localization::Lookup (pStrategy->GetAdvisorCounselText ());
182
182
strLoc << pLoopCity->getNameKey ();
183
183
bool bSuccess = SetCounselEntry (uiCounselIndex, pStrategy->GetAdvisor (), strLoc.toUTF8 (), pStrategy->GetAdvisorCounselImportance ());
184
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
184
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
185
185
if (!bSuccess)
186
186
{
187
187
break ;
@@ -228,7 +228,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
228
228
strLoc << GET_PLAYER (ePlayer).getCivilizationInfo ().getAdjectiveKey ();
229
229
230
230
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 2 );
231
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
231
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
232
232
if (!bSuccess)
233
233
{
234
234
break ;
@@ -244,7 +244,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
244
244
strLoc << GC.getBuildingInfo (pPlayerTechs->GetCivTechUniqueBuilding (eTech))->GetTextKey ();
245
245
strLoc << GET_PLAYER (ePlayer).getCivilizationInfo ().getAdjectiveKey ();
246
246
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 2 );
247
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
247
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
248
248
if (!bSuccess)
249
249
{
250
250
break ;
@@ -260,7 +260,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
260
260
strLoc << GC.getImprovementInfo (pPlayerTechs->GetCivTechUniqueImprovement (eTech))->GetTextKey ();
261
261
strLoc << GET_PLAYER (ePlayer).getCivilizationInfo ().getAdjectiveKey ();
262
262
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 2 );
263
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
263
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
264
264
if (!bSuccess)
265
265
{
266
266
break ;
@@ -276,7 +276,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
276
276
strLoc << pPlayerTechs->GetTechs ()->GetEntry (eTech)->GetTextKey ();
277
277
strLoc << GET_PLAYER (ePlayer).getCivilizationInfo ().getAdjectiveKey ();
278
278
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 2 );
279
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
279
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
280
280
if (!bSuccess)
281
281
{
282
282
break ;
@@ -300,7 +300,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
300
300
strLoc << pPlayerTechs->GetTechs ()->GetEntry (eTech)->GetTextKey ();
301
301
strLoc << GC.getResourceInfo (eResource)->GetTextKey ();
302
302
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 60 );
303
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
303
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
304
304
if (!bSuccess)
305
305
{
306
306
break ;
@@ -368,7 +368,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
368
368
}
369
369
370
370
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 15 );
371
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
371
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
372
372
if (!bSuccess)
373
373
{
374
374
break ;
@@ -443,7 +443,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
443
443
444
444
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_MILITARY, strLoc.toUTF8 (), 15 );
445
445
DEBUG_VARIABLE (bSuccess);
446
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
446
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
447
447
uiCounselIndex++;
448
448
}
449
449
}
@@ -459,7 +459,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
459
459
460
460
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_MILITARY, strLoc.toUTF8 (), 15 );
461
461
DEBUG_VARIABLE (bSuccess);
462
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
462
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
463
463
uiCounselIndex++;
464
464
}
465
465
}
@@ -512,7 +512,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
512
512
513
513
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), iRating);
514
514
DEBUG_VARIABLE (bSuccess);
515
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
515
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
516
516
uiCounselIndex++;
517
517
}
518
518
@@ -974,7 +974,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
974
974
if (eAdvisor != NO_ADVISOR_TYPE)
975
975
{
976
976
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisor, strLoc.toUTF8 (), iMessageRating);
977
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
977
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
978
978
if (!bSuccess)
979
979
{
980
980
break ;
@@ -1096,7 +1096,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1096
1096
if (eAdvisor != NO_ADVISOR_TYPE)
1097
1097
{
1098
1098
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisor, strLoc.toUTF8 (), iMessageRating);
1099
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1099
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1100
1100
if (!bSuccess)
1101
1101
{
1102
1102
break ;
@@ -1308,7 +1308,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1308
1308
{
1309
1309
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisor, strLoc.toUTF8 (), iMessageRating);
1310
1310
DEBUG_VARIABLE (bSuccess);
1311
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1311
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1312
1312
uiCounselIndex++;
1313
1313
}
1314
1314
}
@@ -1380,7 +1380,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1380
1380
strLoc << GC.getMinorCivInfo (pMinorCivAI->GetMinorCivType ())->GetTextKey ();
1381
1381
1382
1382
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisor, strLoc.toUTF8 (), iMessageRating);
1383
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1383
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1384
1384
if (!bSuccess)
1385
1385
{
1386
1386
break ;
@@ -1449,7 +1449,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1449
1449
strLoc << GC.getMinorCivInfo(pMinorCivAI->GetMinorCivType())->GetTextKey();
1450
1450
break;
1451
1451
default:
1452
- CvAssertMsg (false, "No entry for this quest type!");
1452
+ ASSERT (false, "No entry for this quest type!");
1453
1453
break;
1454
1454
}
1455
1455
}
@@ -1520,7 +1520,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1520
1520
strLoc << GC.getMinorCivInfo(pMinorCivAI->GetMinorCivType())->GetTextKey();
1521
1521
break;
1522
1522
default:
1523
- CvAssertMsg (false, "No entry for this quest type!");
1523
+ ASSERT (false, "No entry for this quest type!");
1524
1524
break;
1525
1525
}
1526
1526
}
@@ -1590,7 +1590,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1590
1590
strLoc << GC.getMinorCivInfo(pMinorCivAI->GetMinorCivType())->GetTextKey();
1591
1591
break;
1592
1592
default:
1593
- CvAssertMsg (false, "No entry for this quest type!");
1593
+ ASSERT (false, "No entry for this quest type!");
1594
1594
break;
1595
1595
}
1596
1596
}
@@ -1614,7 +1614,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1614
1614
if (iMessageRating > 0 )
1615
1615
{
1616
1616
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisor, strLoc.toUTF8 (), iMessageRating);
1617
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1617
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1618
1618
if (!bSuccess)
1619
1619
{
1620
1620
break ;
@@ -1706,7 +1706,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1706
1706
strLoc << GC.getBuildingInfo (eRecommendedResearchBuilding)->GetTextKey ();
1707
1707
1708
1708
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_SCIENCE, strLoc.toUTF8 (), 20 );
1709
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1709
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1710
1710
if (!bSuccess)
1711
1711
{
1712
1712
break ;
@@ -1832,7 +1832,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1832
1832
1833
1833
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_ECONOMIC, strLoc.toUTF8 (), 20 );
1834
1834
DEBUG_VARIABLE (bSuccess);
1835
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1835
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1836
1836
uiCounselIndex++;
1837
1837
}
1838
1838
@@ -1934,15 +1934,15 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1934
1934
}
1935
1935
else
1936
1936
{
1937
- CvAssertMsg (false , " Can't trade a bonus resource" );
1937
+ ASSERT (false , " Can't trade a bonus resource" );
1938
1938
}
1939
1939
1940
1940
strLoc << GC.getResourceInfo (eTradableResource)->GetTextKey ();
1941
1941
strLoc << GET_PLAYER (eTargetPlayer).getCivilizationInfo ().GetTextKey ();
1942
1942
1943
1943
bool bSuccess = SetCounselEntry (uiCounselIndex, ADVISOR_FOREIGN, strLoc.toUTF8 (), 20 );
1944
1944
DEBUG_VARIABLE (bSuccess);
1945
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1945
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1946
1946
uiCounselIndex++;
1947
1947
}
1948
1948
@@ -1987,7 +1987,7 @@ void CvAdvisorCounsel::BuildCounselList(PlayerTypes ePlayer)
1987
1987
1988
1988
bool bSuccess = SetCounselEntry (uiCounselIndex, eAdvisorTypes, strLoc.toUTF8 (), 0 );
1989
1989
DEBUG_VARIABLE (bSuccess);
1990
- CvAssertMsg (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1990
+ ASSERT (bSuccess, " Unable to add counsel to list. Too many strategies running at once" );
1991
1991
uiCounselIndex++;
1992
1992
}
1993
1993
}
0 commit comments