@@ -80,7 +80,7 @@ public async Task MoveCamera()
8080 {
8181 int . TryParse ( StartDelayTextbox . Text , out int delaySeconds ) ;
8282
83- if ( timesyncCheckbox . Checked == true )
83+ if ( timesyncCheckbox . Checked == true && theaterTime != null )
8484 {
8585 while ( true )
8686 {
@@ -148,7 +148,7 @@ public async Task MoveCamera()
148148 memory . WriteMemory ( yPos , "float" , $ "{ interpolatedPosition . Item2 } ") ;
149149 memory . WriteMemory ( zPos , "float" , $ "{ interpolatedPosition . Item3 } ") ;
150150
151- if ( lookTracking == true )
151+ if ( lookTracking == true && trackingTargetAddress != null )
152152 {
153153 int selectedIndex = trackListCombo . SelectedIndex ;
154154
@@ -240,15 +240,18 @@ public async Task getPlayerList()
240240
241241 public async Task getCurrentTime ( )
242242 {
243- while ( true )
243+ if ( theaterTime != null )
244244 {
245- float time = memory . ReadFloat ( theaterTime ) ;
246- TimeSpan timeSpan = TimeSpan . FromSeconds ( time ) ;
247- string formattedTime = timeSpan . ToString ( @"hh\:mm\:ss\:fff" ) ;
248-
249- CurrentTimeTextbox . Text = formattedTime ;
245+ while ( true )
246+ {
247+ float time = memory . ReadFloat ( theaterTime ) ;
248+ TimeSpan timeSpan = TimeSpan . FromSeconds ( time ) ;
249+ string formattedTime = timeSpan . ToString ( @"hh\:mm\:ss\:fff" ) ;
250+
251+ CurrentTimeTextbox . Text = formattedTime ;
250252
251- await Task . Delay ( 1 ) ;
253+ await Task . Delay ( 1 ) ;
254+ }
252255 }
253256 }
254257 }
0 commit comments