From e01bd2bf7ddaaa90370a1200dc24006a6babfc50 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Jan 2021 15:30:17 +0100 Subject: further simplify wagon image naming scheme --- lib/DBInfoscreen.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/DBInfoscreen.pm') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 50601dd..a8086e9 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -188,11 +188,8 @@ sub startup { elsif ( not $uic ) { return; } - elsif ( $train_type =~ m{ICE 4} ) { - $ret = substr( $uic, 4, 5 ); - } else { - $ret = substr( $uic, 5, 4 ); + $ret = substr( $uic, 4, 5 ); } if ( $train_type =~ m{ICE . 4..[.]1} ) { @@ -201,7 +198,7 @@ sub startup { elsif ( $train_type =~ m{ICE . 4..[.]2} ) { $ret .= '.2'; } - elsif ( $train_type =~ m{ICE 3 Redesign} ) { + elsif ( $train_type =~ m{Redesign} ) { $ret .= '.r'; } -- cgit v1.2.3