File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ void CZoneCampfire::GoDisabledState()
6565#define OVL_TIME 3000
6666void 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
7676void 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 ;
You can’t perform that action at this time.
0 commit comments