mirror of
https://github.com/derf/travelynx
synced 2025-02-27 04:37:09 +00:00
Journeys->sanity_check: Allow a single trip to take up to three days
Closes #182
This commit is contained in:
parent
22a9345836
commit
0b6a431db8
1 changed files with 4 additions and 4 deletions
|
@ -1101,14 +1101,14 @@ sub sanity_check {
|
||||||
. ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.';
|
. ' Teleportation und Zeitreisen werden in diesem Universum nicht unterstützt.';
|
||||||
}
|
}
|
||||||
if ( $journey->{sched_duration}
|
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}
|
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 ) {
|
if ( $journey->{kmh_route} > 500 or $journey->{kmh_beeline} > 500 ) {
|
||||||
return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.'
|
return 'Die berechnete Geschwindigkeit beträgt über 500 km/h.'
|
||||||
|
|
Loading…
Add table
Reference in a new issue