project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 4098 40df542b5f62
parent 3996 eb549fd864a5
child 4115 222b8016c773
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Tue Nov 02 10:53:38 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Wed Nov 03 00:48:42 2010 +0100
@@ -185,8 +185,11 @@
 }
 
 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) {
-    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) ||
-           (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
+    if (IS_IPAD())
+        return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) ||
+               (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
+    else
+        return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
 }
 
 NSInteger inline randomPort () {