diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-24 16:58:03 +0100 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-24 16:58:28 +0100 | 
| commit | 0b6a431db8899aeb88e6544a1f251fe51acd7977 (patch) | |
| tree | b581ded5a192d7b620beacbb64fb7461c9f3d8b6 | |
| parent | 22a9345836c5d3e6d43c3bb24f311a8a2f6454ec (diff) | |
Journeys->sanity_check: Allow a single trip to take up to three days2.9.2
Closes #182
| -rwxr-xr-x | lib/Travelynx/Model/Journeys.pm | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index 0d690f7..b80a441 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -1101,14 +1101,14 @@ sub sanity_check {  		  . ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.';  	}  	if (    $journey->{sched_duration} -		and $journey->{sched_duration} > 60 * 60 * 24 ) +		and $journey->{sched_duration} > 60 * 60 * 72 )  	{ -		return 'Die Fahrt ist länger als 24 Stunden.'; +		return 'Die Fahrt ist länger als drei Tage.';  	}  	if (    $journey->{rt_duration} -		and $journey->{rt_duration} > 60 * 60 * 24 ) +		and $journey->{rt_duration} > 60 * 60 * 72 )  	{ -		return 'Die Fahrt ist länger als 24 Stunden.'; +		return 'Die Fahrt ist länger als drei Tage.';  	}  	if ( $journey->{kmh_route} > 500 or $journey->{kmh_beeline} > 500 ) {  		return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.' | 
