diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2TenantDef.cpp | 14 |
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; } |