Skip to content

Commit 8c9220e

Browse files
ShokerStlkCrossVR
authored andcommitted
Added missing light sources for DX11 (campfires, anomalies, etc). Thnx to SkyLoader
1 parent 707e636 commit 8c9220e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/xrGame/CustomZone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ BOOL CCustomZone::net_Spawn(CSE_Abstract* DC)
311311
m_zone_flags.set(eUseOnOffTime, (m_TimeToDisable != 0) && (m_TimeToEnable != 0));
312312

313313
//äîáàâèòü èñòî÷íèêè ñâåòà
314-
bool br1 = (0 == psDeviceFlags.test(rsR2 | rsR3));
314+
bool br1 = (0 == psDeviceFlags.test(rsR2 | rsR3 | rsR4));
315315

316316
bool render_ver_allowed = !br1 || (br1 && m_zone_flags.test(eIdleLightR1));
317317

src/xrGame/Torch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ BOOL CTorch::net_Spawn(CSE_Abstract* DC)
212212

213213
bool b_r2 = !!psDeviceFlags.test(rsR2);
214214
b_r2 |= !!psDeviceFlags.test(rsR3);
215+
b_r2 |= !!psDeviceFlags.test(rsR4);
215216

216217
IKinematics* K = smart_cast<IKinematics*>(Visual());
217218
CInifile* pUserData = K->LL_UserData();

src/xrGame/ZoneCampfire.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void CZoneCampfire::GoDisabledState()
6565
#define OVL_TIME 3000
6666
void CZoneCampfire::turn_on_script()
6767
{
68-
if (psDeviceFlags.test(rsR2 | rsR3))
68+
if (psDeviceFlags.test(rsR2 | rsR3 | rsR4))
6969
{
7070
m_turn_time = Device.dwTimeGlobal + OVL_TIME;
7171
m_turned_on = true;
@@ -75,7 +75,7 @@ void CZoneCampfire::turn_on_script()
7575

7676
void CZoneCampfire::turn_off_script()
7777
{
78-
if (psDeviceFlags.test(rsR2 | rsR3))
78+
if (psDeviceFlags.test(rsR2 | rsR3 | rsR4))
7979
{
8080
m_turn_time = Device.dwTimeGlobal + OVL_TIME;
8181
m_turned_on = false;

0 commit comments

Comments
 (0)