From 25d64ceaca280f946412a3912a6a308e2e10bd35 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 15 Sep 2011 17:03:08 +0000 Subject: [PATCH] In camera viewscreen tiles, also draw upper and lower TROR levels. Works in any renderer because it's drawn with the software one... Also add a hack to make Polymer realize that viewscreen tiles can change each tic so that they don't show a static image anymore. git-svn-id: https://svn.eduke32.com/eduke32@2021 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/premap.c | 4 ++++ polymer/eduke32/source/sector.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/polymer/eduke32/source/premap.c b/polymer/eduke32/source/premap.c index 3fd63b3eb..f732f18c2 100644 --- a/polymer/eduke32/source/premap.c +++ b/polymer/eduke32/source/premap.c @@ -560,7 +560,11 @@ void G_SetupCamTile(int32_t i,int32_t wn) //if (waloff[wn] == 0) loadtile(wn); setviewtotile(wn,tilesizy[wn],tilesizx[wn]); + yax_preparedrawrooms(); drawrooms(SX,SY,SZ,SA,100+sprite[i].shade,SECT); + // g_yax_smoothratio? + yax_drawrooms(G_AnalyzeSprites, 100+sprite[i].shade, SECT); + display_mirror = 1; G_DoSpriteAnimations(SX,SY,SA,65536L); display_mirror = 0; diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index 5f9b65424..c48f3f9dc 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -383,6 +383,11 @@ void G_AnimateCamSprite(void) allocatepermanenttile(TILE_VIEWSCR,tilesizx[PN],tilesizy[PN]); else walock[TILE_VIEWSCR] = 255; G_SetupCamTile(OW,/*PN*/TILE_VIEWSCR); +#ifdef POLYMER + // HACK: force texture update on viewscreen sprite in Polymer! + if (rendmode==4) + sprite[i].filler ^= (1<<1); +#endif } } else T1++;