project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 3906 c5da430cb3fd
parent 3904 22e4d74240e5
child 3922 44804043b691
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sun Sep 26 03:41:30 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sun Sep 26 17:02:44 2010 +0200
@@ -579,7 +579,7 @@
     [indicator release];
 }
 
-// called by uStore from FinishProgress
+// called by uStore from FinishProgress and by OverlayViewController by replayBegan
 void stopSpinning() {
     UIActivityIndicatorView *indicator = (UIActivityIndicatorView *)[[[[UIApplication sharedApplication] keyWindow] viewWithTag:SDL_VIEW_TAG] viewWithTag:987654];
     [indicator stopAnimating];
@@ -616,9 +616,15 @@
     blackView.exclusiveTouch = NO;
     blackView.multipleTouchEnabled = NO;
     blackView.userInteractionEnabled = NO;
+    UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
+    indicator.center = theWindow.center;
+    [indicator startAnimating];
+    [blackView addSubview:indicator];
+    [indicator release];
     [theWindow addSubview:blackView];
     [blackView release];
     isReplay = YES;
+    stopSpinning();
 }
 
 // called by uGame