From 7dd45301fa88549c4504bb8e47aeb9f2c7a50a91 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Wed, 25 Sep 2019 16:45:09 +0100 Subject: [PATCH] SOB render list working (finally!) --- lroom.cpp | 24 ++++++++++++------------ lroom.h | 2 +- lroom_manager.cpp | 24 ++++++++++++++++++++++++ lroom_manager.h | 1 + 4 files changed, 38 insertions(+), 13 deletions(-) diff --git a/lroom.cpp b/lroom.cpp index b021a30..cd20d66 100644 --- a/lroom.cpp +++ b/lroom.cpp @@ -191,19 +191,19 @@ void LRoom::FinalizeVisibility(LRoomManager &manager) { //print_line("FinalizeVisibility room " + get_name() + " NumSOBs " + itos(m_SOBs.size()) + ", NumDOBs " + itos(m_DOBs.size())); - int last_sob = m_iFirstSOB + m_iNumSOBs; - for (int n=m_iFirstSOB; n * pTemp = m_pCurr_VisibleRoomList; m_pCurr_VisibleRoomList = m_pPrev_VisibleRoomList; @@ -754,6 +756,28 @@ void LRoomManager::FrameUpdate_AddShadowCasters() } +void LRoomManager::FrameUpdate_FinalizeVisibility_SoftShow() +{ + // apply the appropriate soft show for each sob in the render list + int nSOBs = m_RenderList_SOBs.size(); + + for (int n=0; n