summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2OutDecoration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2OutDecoration.cpp')
-rw-r--r--src/T2DLL/T2OutDecoration.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/T2DLL/T2OutDecoration.cpp b/src/T2DLL/T2OutDecoration.cpp
index 575f0f8..e8d7d74 100644
--- a/src/T2DLL/T2OutDecoration.cpp
+++ b/src/T2DLL/T2OutDecoration.cpp
@@ -43,11 +43,11 @@ T2OutDecoration::T2OutDecoration(T2TowerEvent* inTowerEvent, CResFile* inResFile
}
/*virtual*/ int T2OutDecoration::Exec(T2TowerDoc* inDoc) {
- T2PaletteAnime *thePalette = inDoc->towerDoc_vf160();
+ T2PaletteAnime *thePalette = inDoc->GetPaletteAnime();
int frame = thePalette->IsSnow() ? 1 : 0;
- if (inDoc->towerDoc_vf140() != mCurrentViewMode || frame != mCurrentFrame)
- DoDecoration(inDoc, (VIEWMODE) inDoc->towerDoc_vf140(), frame);
+ if (inDoc->GetViewMode() != mCurrentViewMode || frame != mCurrentFrame)
+ DoDecoration(inDoc, (VIEWMODE) inDoc->GetViewMode(), frame);
return 0;
}
@@ -55,7 +55,7 @@ T2OutDecoration::T2OutDecoration(T2TowerEvent* inTowerEvent, CResFile* inResFile
void T2OutDecoration::DoDecoration(T2TowerDoc* inDoc, VIEWMODE inViewMode, int inFrame) {
T2OutDeco *theOutDeco;
- if (inViewMode == ViewMode_1) {
+ if (inViewMode == kOutView) {
LArray *theRoofList = MakeLoofList();
if (theRoofList) {
T2Sprite *theSprite = &inDoc->mSprite;
@@ -109,8 +109,8 @@ void T2OutDecoration::DoDecoration(T2TowerDoc* inDoc, VIEWMODE inViewMode, int i
}
/*virtual*/ void T2OutDecoration::ViewModeChanged(T2TowerDoc* inDoc, VIEWMODE inViewMode) {
- if (inViewMode != mCurrentViewMode && (inViewMode == ViewMode_1 || mCurrentViewMode == ViewMode_1)) {
- T2PaletteAnime *thePalette = inDoc->towerDoc_vf160();
+ if (inViewMode != mCurrentViewMode && (inViewMode == kOutView || mCurrentViewMode == kOutView)) {
+ T2PaletteAnime *thePalette = inDoc->GetPaletteAnime();
int frame = thePalette->IsSnow() ? 1 : 0;
DoDecoration(inDoc, inViewMode, frame);
@@ -125,7 +125,7 @@ LArray* T2OutDecoration::MakeLoofList() {
LArray *theArray = new LArray;
if (theArray) {
- T2FloorInfo *theFloorInfo = GetTowerDoc()->towerDoc_vf12C();
+ T2FloorInfo *theFloorInfo = GetTowerDoc()->GetFloorInfo();
int curV;
int groundV = GetWorldDef()->mGroundLine - 1;
int nextH;