diff --git a/source/duke3d/src/sector.cpp b/source/duke3d/src/sector.cpp index 2b869b77b..b6a8d24fc 100644 --- a/source/duke3d/src/sector.cpp +++ b/source/duke3d/src/sector.cpp @@ -387,7 +387,7 @@ static void G_SetupCamTile(int spriteNum, int tileNum, int smoothRatio) int const noDraw = VM_OnEventWithReturn(EVENT_DISPLAYROOMSCAMERATILE, spriteNum, playerNum, 0); if (noDraw == 1) - return; + goto finishTileSetup; #ifdef DEBUGGINGAIDS else if (EDUKE32_PREDICT_FALSE(noDraw != 0)) // event return values other than 0 and 1 are reserved OSD_Printf(OSD_ERROR "ERROR: EVENT_DISPLAYROOMSCAMERATILE return value must be 0 or 1, " @@ -403,6 +403,7 @@ static void G_SetupCamTile(int spriteNum, int tileNum, int smoothRatio) display_mirror = saveMirror; renderDrawMasks(); +finishTileSetup: renderRestoreTarget(); squarerotatetile(tileNum); tileInvalidate(tileNum, -1, 255);