@@ -73,7 +73,7 @@ void SBinocVisibleObj::Draw()
7373
7474void SBinocVisibleObj::Update ()
7575{
76- m_flags.set (flVisObjNotValid, TRUE );
76+ m_flags.set (flVisObjNotValid, true );
7777
7878 if (!m_object->Visual ())
7979 return ;
@@ -131,11 +131,11 @@ void SBinocVisibleObj::Update()
131131 if (mn.similar (cur_rect.lt , 2 .f ) && mx.similar (cur_rect.rb , 2 .f ))
132132 {
133133 // target locked
134- m_flags.set (flTargetLocked, TRUE );
134+ m_flags.set (flTargetLocked, true );
135135 u32 clr = subst_alpha (m_lt.GetTextureColor (), 255 );
136136
137137 // -----------------------------------------------------
138- CActor* pActor = NULL ;
138+ CActor* pActor = nullptr ;
139139 if (IsGameTypeSingle ())
140140 pActor = Actor ();
141141 else
@@ -191,7 +191,7 @@ void SBinocVisibleObj::Update()
191191 m_rt.SetWndPos (Fvector2 ().set ((cur_rect.rb .x ), (cur_rect.lt .y )));
192192 m_rb.SetWndPos (Fvector2 ().set ((cur_rect.rb .x ), (cur_rect.rb .y )));
193193
194- m_flags.set (flVisObjNotValid, FALSE );
194+ m_flags.set (flVisObjNotValid, false );
195195}
196196
197197CBinocularsVision::CBinocularsVision (const shared_str& sect) { Load (sect); }
@@ -201,7 +201,7 @@ void CBinocularsVision::Update()
201201 if (GEnv.isDedicatedServer )
202202 return ;
203203 // -----------------------------------------------------
204- const CActor* pActor = NULL ;
204+ const CActor* pActor = nullptr ;
205205 if (IsGameTypeSingle ())
206206 pActor = Actor ();
207207 else
@@ -218,7 +218,7 @@ void CBinocularsVision::Update()
218218
219219 VIS_OBJECTS_IT it = m_active_objects.begin ();
220220 for (; it != m_active_objects.end (); ++it)
221- (*it)->m_flags .set (flVisObjNotValid, TRUE );
221+ (*it)->m_flags .set (flVisObjNotValid, true );
222222
223223 CVisualMemoryManager::VISIBLES::const_iterator v_it = vVisibles.begin ();
224224 for (; v_it != vVisibles.end (); ++v_it)
@@ -239,18 +239,18 @@ void CBinocularsVision::Update()
239239
240240 if (found != m_active_objects.end ())
241241 {
242- (*found)->m_flags .set (flVisObjNotValid, FALSE );
242+ (*found)->m_flags .set (flVisObjNotValid, false );
243243 }
244244 else
245245 {
246246 m_active_objects.push_back (new SBinocVisibleObj ());
247247 SBinocVisibleObj* new_vis_obj = m_active_objects.back ();
248- new_vis_obj->m_flags .set (flVisObjNotValid, FALSE );
248+ new_vis_obj->m_flags .set (flVisObjNotValid, false );
249249 new_vis_obj->m_object = object_;
250250 new_vis_obj->create_default (m_frame_color.get ());
251251 new_vis_obj->m_upd_speed = m_rotating_speed;
252252
253- m_sounds.PlaySound (" found_snd" , Fvector ().set (0 , 0 , 0 ), NULL , true );
253+ m_sounds.PlaySound (" found_snd" , Fvector ().set (0 , 0 , 0 ), nullptr , true );
254254 }
255255 }
256256 std::sort (m_active_objects.begin (), m_active_objects.end ());
@@ -266,12 +266,12 @@ void CBinocularsVision::Update()
266266 {
267267 SBinocVisibleObj* visObj = (*it);
268268
269- BOOL bLocked = visObj->m_flags .test (flTargetLocked);
269+ const bool bLocked = visObj->m_flags .test (flTargetLocked);
270270
271271 (*it)->Update ();
272272
273273 if (bLocked != visObj->m_flags .test (flTargetLocked))
274- m_sounds.PlaySound (" catch_snd" , Fvector ().set (0 , 0 , 0 ), NULL , true );
274+ m_sounds.PlaySound (" catch_snd" , Fvector ().set (0 , 0 , 0 ), nullptr , true );
275275 }
276276}
277277
0 commit comments