Skip to content

Commit

Permalink
Added missing light sources for DX11 (campfires, anomalies, etc). Thn…
Browse files Browse the repository at this point in the history
…x to SkyLoader
  • Loading branch information
ShokerStlk authored and CrossVR committed Mar 7, 2017
1 parent 707e636 commit 8c9220e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/CustomZone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ BOOL CCustomZone::net_Spawn(CSE_Abstract* DC)
m_zone_flags.set(eUseOnOffTime, (m_TimeToDisable != 0) && (m_TimeToEnable != 0));

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

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

Expand Down
1 change: 1 addition & 0 deletions src/xrGame/Torch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ BOOL CTorch::net_Spawn(CSE_Abstract* DC)

bool b_r2 = !!psDeviceFlags.test(rsR2);
b_r2 |= !!psDeviceFlags.test(rsR3);
b_r2 |= !!psDeviceFlags.test(rsR4);

This comment has been minimized.

Copy link
@Xottab-DUTY

Xottab-DUTY Mar 9, 2017

Member

would something like:
bool b_r2 = psDeviceFlags.test(rsR2 | rsR3 | rsR4)
work? Or there is specific reasons for this?

This comment has been minimized.

Copy link
@CrossVR

CrossVR Mar 9, 2017

Contributor

Doesn't seem like there's any particular reason for it.

IKinematics* K = smart_cast<IKinematics*>(Visual());
CInifile* pUserData = K->LL_UserData();
Expand Down
4 changes: 2 additions & 2 deletions src/xrGame/ZoneCampfire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void CZoneCampfire::GoDisabledState()
#define OVL_TIME 3000
void CZoneCampfire::turn_on_script()
{
if (psDeviceFlags.test(rsR2 | rsR3))
if (psDeviceFlags.test(rsR2 | rsR3 | rsR4))
{
m_turn_time = Device.dwTimeGlobal + OVL_TIME;
m_turned_on = true;
Expand All @@ -75,7 +75,7 @@ void CZoneCampfire::turn_on_script()

void CZoneCampfire::turn_off_script()
{
if (psDeviceFlags.test(rsR2 | rsR3))
if (psDeviceFlags.test(rsR2 | rsR3 | rsR4))
{
m_turn_time = Device.dwTimeGlobal + OVL_TIME;
m_turned_on = false;
Expand Down

0 comments on commit 8c9220e

Please sign in to comment.