mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
sector.cpp: ensure that if scripts have told us not to render normally to the tile, that we still handle restoring our target & setting up the tile appropriately for what the script may have rendered
git-svn-id: https://svn.eduke32.com/eduke32@7891 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5fad944ed1
commit
67522909c5
1 changed files with 2 additions and 1 deletions
|
@ -387,7 +387,7 @@ static void G_SetupCamTile(int spriteNum, int tileNum, int smoothRatio)
|
||||||
int const noDraw = VM_OnEventWithReturn(EVENT_DISPLAYROOMSCAMERATILE, spriteNum, playerNum, 0);
|
int const noDraw = VM_OnEventWithReturn(EVENT_DISPLAYROOMSCAMERATILE, spriteNum, playerNum, 0);
|
||||||
|
|
||||||
if (noDraw == 1)
|
if (noDraw == 1)
|
||||||
return;
|
goto finishTileSetup;
|
||||||
#ifdef DEBUGGINGAIDS
|
#ifdef DEBUGGINGAIDS
|
||||||
else if (EDUKE32_PREDICT_FALSE(noDraw != 0)) // event return values other than 0 and 1 are reserved
|
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, "
|
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;
|
display_mirror = saveMirror;
|
||||||
renderDrawMasks();
|
renderDrawMasks();
|
||||||
|
|
||||||
|
finishTileSetup:
|
||||||
renderRestoreTarget();
|
renderRestoreTarget();
|
||||||
squarerotatetile(tileNum);
|
squarerotatetile(tileNum);
|
||||||
tileInvalidate(tileNum, -1, 255);
|
tileInvalidate(tileNum, -1, 255);
|
||||||
|
|
Loading…
Reference in a new issue