summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TenantDef.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-06 10:49:52 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-06 10:49:52 +0100
commit96a63139221587c6be9659c1e07eacd3a8e7f048 (patch)
tree23aef453ef216c97b762637f553d131646fd5985 /src/T2DLL/T2TenantDef.cpp
parent27fc86e8c0450a7fe33d76344c4d53e23a70a6c3 (diff)
downloadt2win-96a63139221587c6be9659c1e07eacd3a8e7f048.tar.gz
t2win-96a63139221587c6be9659c1e07eacd3a8e7f048.zip
add untested Burger code
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2TenantDef.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/T2DLL/T2TenantDef.cpp b/src/T2DLL/T2TenantDef.cpp
index 3cde569..e05e982 100644
--- a/src/T2DLL/T2TenantDef.cpp
+++ b/src/T2DLL/T2TenantDef.cpp
@@ -144,14 +144,14 @@ T2TenantDef::T2TenantDef(DWORD type, T2PluginSpecifier& specifier, CResFile* res
int status = theEquip->GetStatus();
unsigned int result = 0;
- if (status < kStatus10) {
- if (status <= kStatus2 || status == kStatus9)
+ if (status < kTenantStatus10) {
+ if (status <= kTenantStatus2 || status == kTenantStatus9)
result = 1;
status++;
theEquip->SetStatus(status);
- if (status == kStatus10) {
+ if (status == kTenantStatus10) {
BuildFinish(towerDoc, theEquip);
towerDoc->mTowerMainView->InvalUnitRect(theEquip->mArea, true);
}
@@ -160,8 +160,8 @@ T2TenantDef::T2TenantDef(DWORD type, T2PluginSpecifier& specifier, CResFile* res
T2Tenant *theTenant = (T2Tenant *) theEquip;
status = theTenant->GetStatus();
- if (status >= kStatus9 && ChangeStatusOnIdle(towerDoc, theTenant, status)) {
- if (status == kStatus9)
+ if (status >= kTenantStatus9 && ChangeStatusOnIdle(towerDoc, theTenant, status)) {
+ if (status == kTenantStatus9)
theTenant->SetDrawMode(DrawMode2);
else
theTenant->SetDrawMode(DrawMode1);
@@ -181,7 +181,7 @@ T2TenantDef::T2TenantDef(DWORD type, T2PluginSpecifier& specifier, CResFile* res
if (GetCategory() != 100 && rect.top <= towerDoc->mWorldDef->mTopFloorLine) {
if (inShowError) {
// EN: Only Final item can be placed on the top floor of building.
- towerDoc->towerDoc_vf13C()->BuildErr(68, NULL);
+ towerDoc->GetTowerMessage()->BuildErr(68, NULL);
}
return AreaCheckCode_0;
}
@@ -189,7 +189,7 @@ T2TenantDef::T2TenantDef(DWORD type, T2PluginSpecifier& specifier, CResFile* res
if (rect.bottom > towerDoc->mWorldDef->mBottomFloorLine) {
if (inShowError) {
// EN: Can not place items beyond the edges of the floor below.
- towerDoc->towerDoc_vf13C()->BuildErr(2, NULL);
+ towerDoc->GetTowerMessage()->BuildErr(2, NULL);
}
return AreaCheckCode_0;
}