project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 5207 4c9ae0f484da
parent 5206 db775bddf771
child 5208 878e551f0b4a
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Wed May 11 01:26:38 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Thu May 12 23:00:26 2011 +0200
@@ -61,7 +61,8 @@
     NSInteger angle_left = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 180 : 0;
     NSInteger angle_right = (self.initialOrientation == UIInterfaceOrientationLandscapeLeft) ? 0 : 180;
 
-    if (IS_VERY_POWERFUL()) {
+    NSString *model = getModelType();
+    if (IS_VERY_POWERFUL(model)) {
         [UIView beginAnimations:@"overlay rotation" context:NULL];
         [UIView setAnimationDuration:0.7];
     }
@@ -82,7 +83,7 @@
             // a debug log would spam too much
             break;
     }
-    if (IS_VERY_POWERFUL())
+    if (IS_VERY_POWERFUL(model))
         [UIView commitAnimations];
 }