Skip to content

Commit 4d461c6

Browse files
authored
Merge pull request #254 from Architector4/patch-mopixel-draw-always
MOPixel::Draw - don't skip drawing on non-drawn sim updates
2 parents 7f74d4d + 3a6969f commit 4d461c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/Entities/MOPixel.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ void MOPixel::Update() {
222222
}
223223

224224
void MOPixel::Draw(BITMAP* targetBitmap, const Vector& targetPos, DrawMode mode, bool onlyPhysical) const {
225-
// Don't draw color if this isn't a drawing frame
226-
if (!g_TimerMan.DrawnSimUpdate() && mode == g_DrawColor) {
227-
return;
228-
}
225+
// Note: don't skip this drawing even if it's not a drawn sim update and
226+
// the DrawMode is g_DrawColor, because this might be a draw to a scene terrain.
229227

230228
int drawColor = -1;
231229

0 commit comments

Comments
 (0)