summaryrefslogtreecommitdiff
path: root/src/T2TowerDoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2TowerDoc.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/T2TowerDoc.cpp b/src/T2TowerDoc.cpp
index f9bcf5f..7fb998b 100644
--- a/src/T2TowerDoc.cpp
+++ b/src/T2TowerDoc.cpp
@@ -2242,7 +2242,7 @@ void T2TowerDoc::LoadSoundForPlugin(T2TemplatePlugin *inPlugin) {
if (!inTenant->IsBuildFinish()) {
// EN: Can not remove the item under construction until it is completed.
- towerDoc_vf13C()->BuildErr(52, NULL);
+ GetTowerMessage()->BuildErr(52, NULL);
if (!inSkipSounds)
mSoundPlayer->Play("No", SoundMask_20, SoundFlags_20, &inPt2, PlayMode_2, 100);
@@ -2282,7 +2282,7 @@ BOOL T2TowerDoc::OutsideAreaCheck(T2Tenant *inTenant, BOOL inShowError) {
if (mFloorInfo->GetOutObjID(v, h) != 0) {
if (inShowError) {
// EN: Can not remove this floor because an outside item is placed.
- towerDoc_vf13C()->BuildErr(69 /*nice*/, NULL);
+ GetTowerMessage()->BuildErr(69 /*nice*/, NULL);
}
return false;
}
@@ -2559,7 +2559,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
success = false;
if (inShowError) {
// EN: Shortage of construction money.
- towerDoc_vf13C()->BuildErr(10, NULL);
+ GetTowerMessage()->BuildErr(10, NULL);
}
}
}
@@ -2577,7 +2577,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (inRect.top < buildArea.top || inRect.bottom > buildArea.bottom || inRect.left < buildArea.left || inRect.right > buildArea.right) {
if (inShowErr) {
// EN: Can not place items here.
- towerDoc_vf13C()->BuildErr(8, NULL);
+ GetTowerMessage()->BuildErr(8, NULL);
}
return false;
}
@@ -2585,7 +2585,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (!mFloorInfo->IsAreaBuildable(inRect)) {
if (inShowErr) {
// EN: Can not place items here.
- towerDoc_vf13C()->BuildErr(8, NULL);
+ GetTowerMessage()->BuildErr(8, NULL);
}
return false;
}
@@ -2596,7 +2596,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (inRect.bottom != mWorldDef->mGroundLine) {
if (inShowErr) {
// EN: This item can only be placed on the lobby floor.
- towerDoc_vf13C()->BuildErr(23, NULL);
+ GetTowerMessage()->BuildErr(23, NULL);
}
return false;
}
@@ -2604,7 +2604,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (mWorldDef->mGroundLine > inRect.top && inRect.bottom > (mWorldDef->mGroundLine - mWorldDef->GetLobbyHeight())) {
if (inShowErr) {
// EN: Can not place this item on the lobby floor.
- towerDoc_vf13C()->BuildErr(24, NULL);
+ GetTowerMessage()->BuildErr(24, NULL);
}
return false;
}
@@ -2614,7 +2614,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (inRect.bottom > mWorldDef->mGroundLine) {
if (inShowErr) {
// EN: Can not place this item underground.
- towerDoc_vf13C()->BuildErr(6, NULL);
+ GetTowerMessage()->BuildErr(6, NULL);
}
return false;
}
@@ -2624,7 +2624,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (inRect.top < mWorldDef->mGroundLine) {
if (inShowErr) {
// EN: Can not place this item above ground.
- towerDoc_vf13C()->BuildErr(7, NULL);
+ GetTowerMessage()->BuildErr(7, NULL);
}
return false;
}
@@ -2640,7 +2640,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (IntersectRect(&tmp, &inRect, &equip->mArea)) {
if (inShowErr) {
// EN: Can not place items where something else already exists.
- towerDoc_vf13C()->BuildErr(9, NULL);
+ GetTowerMessage()->BuildErr(9, NULL);
}
return false;
}
@@ -2652,7 +2652,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (theTenant && (isBuildingFloor || !theTenant->IsFloor())) {
if (inShowErr) {
// EN: Can not place items where something else already exists.
- towerDoc_vf13C()->BuildErr(9, NULL);
+ GetTowerMessage()->BuildErr(9, NULL);
}
return false;
}
@@ -2677,7 +2677,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (m1A0->GetCurBuildCount() >= m1A0->GetMaxBuildCount()) {
if (_B0) {
// EN: Can not make additional placement of this item.
- towerDoc_vf13C()->BuildErr(11, NULL);
+ GetTowerMessage()->BuildErr(11, NULL);
}
result = false;
}
@@ -2886,10 +2886,10 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (!inIsFromMouseMove) {
if (inDef->IsStair()) {
// EN: can not be placed there.
- towerDoc_vf13C()->BuildErr(41, inDef);
+ GetTowerMessage()->BuildErr(41, inDef);
} else {
// EN: Can not place elevator system there.
- towerDoc_vf13C()->BuildErr(42, NULL);
+ GetTowerMessage()->BuildErr(42, NULL);
}
}
return false;
@@ -2904,7 +2904,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (theTenant && theTenant->IsSetAttribute(kTenantAttr40000)) {
if (!inIsFromMouseMove) {
// EN: Can not place a transit system on the Sky Bridge.
- towerDoc_vf13C()->BuildErr(72, NULL);
+ GetTowerMessage()->BuildErr(72, NULL);
}
return false;
}
@@ -2915,10 +2915,10 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (!inIsFromMouseMove) {
if (inDef->IsStair()) {
// EN: requires space on both sides.
- towerDoc_vf13C()->BuildErr(32, inDef);
+ GetTowerMessage()->BuildErr(32, inDef);
} else {
// EN: The elevator item requires space on both sides.
- towerDoc_vf13C()->BuildErr(33, NULL);
+ GetTowerMessage()->BuildErr(33, NULL);
}
}
return false;
@@ -2931,7 +2931,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (cost > GetCurrentFunds()) {
if (!inIsFromMouseMove) {
// EN: Shortage of construction money.
- towerDoc_vf13C()->BuildErr(10, NULL);
+ GetTowerMessage()->BuildErr(10, NULL);
}
return false;
}
@@ -2948,7 +2948,7 @@ void T2TowerDoc::CalcCraneUpdateRect(RECT &ioRect) {
if (cost > GetCurrentFunds()) {
if (!inIsFromMouseMove) {
// EN: Shortage of construction money.
- towerDoc_vf13C()->BuildErr(10, NULL);
+ GetTowerMessage()->BuildErr(10, NULL);
}
return false;
}