summaryrefslogtreecommitdiffstats
path: root/src/render/Fluff.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:48 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-19 16:38:48 +0200
commitdf376a13ea8dac7ecff2aabe7d715774bcc7c294 (patch)
treedc4c0230c14bce31044813c8dc4048a837c0c278 /src/render/Fluff.cpp
parent1.1 patch stuff (diff)
parentMerge pull request #474 from Nick007J/master (diff)
downloadre3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar.gz
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar.bz2
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar.lz
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar.xz
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.tar.zst
re3-df376a13ea8dac7ecff2aabe7d715774bcc7c294.zip
Diffstat (limited to 'src/render/Fluff.cpp')
-rw-r--r--src/render/Fluff.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/Fluff.cpp b/src/render/Fluff.cpp
index e068747e..9f3f6929 100644
--- a/src/render/Fluff.cpp
+++ b/src/render/Fluff.cpp
@@ -159,12 +159,12 @@ void CMovingThings::Update()
int block = CTimer::GetFrameCounter() % TIME_SPAN;
for (i = (block * NUMMOVINGTHINGS) / TIME_SPAN; i < ((block + 1) * NUMMOVINGTHINGS) / TIME_SPAN; i++) {
- if (aMovingThings[i].field_A == 1)
+ if (aMovingThings[i].m_nHidden == 1)
aMovingThings[i].Update();
}
for (i = 0; i < CMovingThings::Num; i++) {
- if (aMovingThings[i].field_A == 0)
+ if (aMovingThings[i].m_nHidden == 0)
aMovingThings[i].Update();
}
@@ -212,14 +212,14 @@ void CMovingThing::Update()
m_pEntity->UpdateRwFrame();
if (SQR(m_pEntity->GetPosition().x - TheCamera.GetPosition().x) + SQR(m_pEntity->GetPosition().y - TheCamera.GetPosition().y) < 40000.0f) {
- if (field_A == 1) {
+ if (m_nHidden == 1) {
AddToList(&CMovingThings::StartCloseList);
- field_A = 0;
+ m_nHidden = 0;
}
} else {
- if (field_A == 0) {
+ if (m_nHidden == 0) {
RemoveFromList();
- field_A = 1;
+ m_nHidden = 1;
}
}
}