File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -311,8 +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 | rsR4));
315-
314+ bool br1 = psDeviceFlags.test (rsR1);
316315 bool render_ver_allowed = !br1 || (br1 && m_zone_flags.test (eIdleLightR1));
317316
318317 if (m_zone_flags.test (eIdleLight) && render_ver_allowed)
Original file line number Diff line number Diff line change @@ -208,9 +208,7 @@ BOOL CTorch::net_Spawn(CSE_Abstract* DC)
208208 if (!inherited::net_Spawn (DC))
209209 return (FALSE );
210210
211- bool b_r2 = !!psDeviceFlags.test (rsR2);
212- b_r2 |= !!psDeviceFlags.test (rsR3);
213- b_r2 |= !!psDeviceFlags.test (rsR4);
211+ bool b_r2 = !psDeviceFlags.test (rsR1);
214212
215213 IKinematics* K = smart_cast<IKinematics*>(Visual ());
216214 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 | rsR4 ))
68+ if (! psDeviceFlags.test (rsR1 ))
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 | rsR4 ))
78+ if (! psDeviceFlags.test (rsR1 ))
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