/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
another related question: ive asked something like this before, but if you close a base and you built terminals there and you don't have any rented gates, what happens?
it should, when a competitor is deleted/bankrupted the script goes through and closes their routes as if they had been normally closed... Those that remain should automatically adjust up where adjustment is "due" as it were.
If you already lowered your rates to 100% LF before the competitor was removed, however, you'll likely stay at 100% though you may be able to charge more. These routes may not stand out very well amongst the rest, and may be quite hard to find on their own, but... they probably exist.
Quote from: "Air Elbonia"it should, when a competitor is deleted/bankrupted the script goes through and closes their routes as if they had been normally closed... Those that remain should automatically adjust up where adjustment is "due" as it were.
If you already lowered your rates to 100% LF before the competitor was removed, however, you'll likely stay at 100% though you may be able to charge more. These routes may not stand out very well amongst the rest, and may be quite hard to find on their own, but... they probably exist.
Ok, I now found a route where my LF was 71%. It is route number 352416 (Madeira - Leipzig-Halle). I went to edit this route but there was no competition. I clicked on "Update" without changing the fare and LF raised to 100% charging me 12,124 EUR. I guess LF DO NOT increase when a competitor is gone. You may check that before the game reset.