summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2OutDecoration.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-05 19:04:06 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-05 19:04:06 +0100
commit5e61c1280c15ab9969b94cd360cafd4a11b2dd30 (patch)
tree1fdb60d771c4351b5aa5dcf1a43376c0558625a4 /src/T2DLL/T2OutDecoration.cpp
parentc2efba6907fab934a04959b9bb644cf7141cc955 (diff)
downloadt2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.tar.gz
t2win-5e61c1280c15ab9969b94cd360cafd4a11b2dd30.zip
matched T2.exe
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;