project_files/HedgewarsMobile/Classes/Appirater.m
changeset 6078 8c0cc07731e5
parent 5483 fc755bb8096d
child 6246 6b2d19ed521a
--- a/project_files/HedgewarsMobile/Classes/Appirater.m	Fri Sep 30 22:33:28 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/Appirater.m	Sun Oct 02 00:57:04 2011 +0200
@@ -37,7 +37,7 @@
 #import "Appirater.h"
 #import <SystemConfiguration/SCNetworkReachability.h>
 #import <netinet/in.h>
-#import "CommodityFunctions.h"
+#import "ServerSetup.h"
 
 NSString *const kAppiraterLaunchDate            = @"kAppiraterLaunchDate";
 NSString *const kAppiraterLaunchCount           = @"kAppiraterLaunchCount";
@@ -106,7 +106,7 @@
              launchCount > LAUNCHES_UNTIL_PROMPT &&
              !declinedToRate &&
              !ratedApp) {
-            if (isNetworkReachable()) {	// check if they can reach the app store
+            if ([ServerSetup isNetworkReachable]) {	// check if they can reach the app store
                 willShowPrompt = YES;
                 [self performSelectorOnMainThread:@selector(showPrompt) withObject:nil waitUntilDone:NO];
             }