summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TrafficInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2TrafficInfo.cpp')
-rw-r--r--src/T2DLL/T2TrafficInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/T2DLL/T2TrafficInfo.cpp b/src/T2DLL/T2TrafficInfo.cpp
index 04722a4..2079015 100644
--- a/src/T2DLL/T2TrafficInfo.cpp
+++ b/src/T2DLL/T2TrafficInfo.cpp
@@ -70,13 +70,13 @@ void T2TrafficInfo::HourChanged(T2TowerDoc* inDoc) {
int range = CalcRange(unt->x4);
if (range != unt->range) {
unt->range = range;
- if (inDoc->towerDoc_vf140() == ViewMode_5) {
+ if (inDoc->GetViewMode() == kTransView) {
RECT area;
- T2FloorInfo *theFloorInfo = inDoc->towerDoc_vf12C();
+ T2FloorInfo *theFloorInfo = inDoc->GetFloorInfo();
CalcUnitArea(i, area);
theFloorInfo->SetTenantDrawModeByRect(area, DrawMode3);
- inDoc->GetTowerMainView()->tmv_vf128(area);
+ inDoc->GetMainView()->InvalUnitRect(area);
}
}
}