diff -r 4c35e9cf6057 -r 40e5af28d026 hedgewars/uMobile.pas --- a/hedgewars/uMobile.pas Wed May 02 11:28:38 2012 +0200 +++ b/hedgewars/uMobile.pas Wed May 02 10:53:13 2012 +0100 @@ -44,18 +44,15 @@ // this function is just to determine whether we are running on a limited screen device function isPhone: Boolean; inline; begin + isPhone:= false; {$IFDEF IPHONEOS} - exit(isApplePhone()); + isPhone:= isApplePhone(); {$ENDIF} {$IFDEF ANDROID} //nasty nasty hack. TODO: implement callback to java to have a unified way of determining if it is a tablet if (cScreenWidth < 1000) and (cScreenHeight < 500) then - begin - exit(true); - end - else exit(false); + isPhone:= true; {$ENDIF} - exit(false); end; // this function should make the device vibrate in some way