project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 4098 40df542b5f62
parent 3996 eb549fd864a5
child 4115 222b8016c773
equal deleted inserted replaced
4097:1bd64b8156fb 4098:40df542b5f62
   183     [schemeFile release];
   183     [schemeFile release];
   184     [theScheme release];
   184     [theScheme release];
   185 }
   185 }
   186 
   186 
   187 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) {
   187 BOOL inline rotationManager (UIInterfaceOrientation interfaceOrientation) {
   188     return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) ||
   188     if (IS_IPAD())
   189            (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
   189         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight) ||
       
   190                (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
       
   191     else
       
   192         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
   190 }
   193 }
   191 
   194 
   192 NSInteger inline randomPort () {
   195 NSInteger inline randomPort () {
   193     srandom(time(NULL));
   196     srandom(time(NULL));
   194     NSInteger res = (random() % 64511) + 1024;
   197     NSInteger res = (random() % 64511) + 1024;