mirror flicker fix 2

This commit is contained in:
Jasper St. Pierre
2026-04-19 16:21:30 -07:00
parent 55eec3b0de
commit 32cddc725b
2 changed files with 15 additions and 6 deletions
+3
View File
@@ -25,6 +25,9 @@ public:
/* 0x164 */ cXyz mMinVal;
/* 0x170 */ cXyz mMaxVal;
/* 0x17C */ cXyz mViewScale;
#if TARGET_PC
bool mbReset = false;
#endif
};
/**
+12 -6
View File
@@ -34,7 +34,11 @@ dMirror_packet_c::dMirror_packet_c() {
}
void dMirror_packet_c::reset() {
#if TARGET_PC
mbReset = true;
#else
mModelCount = 0;
#endif
}
void dMirror_packet_c::calcMinMax() {
@@ -76,6 +80,13 @@ void dMirror_packet_c::calcMinMax() {
}
int dMirror_packet_c::entryModel(J3DModel* i_model) {
#if TARGET_PC
if (mbReset) {
mModelCount = 0;
mbReset = false;
}
#endif
if (mModelCount >= 0x40) {
return 0;
}
@@ -444,12 +455,7 @@ void dMirror_packet_c::draw() {
}
mDoLib_clipper::resetFar();
#if TARGET_PC
if (!dusk::frame_interp::is_sim_frame())
#endif
{
reset();
}
reset();
}
daMirror_c::daMirror_c() {