diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-22 23:10:25 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-12-22 23:10:25 +0100 |
commit | b106f56e105b76a0a02f9e9383f43c3af4eb732f (patch) | |
tree | 585527db5b0cebda01d2827f65cfe0be3b9f4c7b /lib/DBInfoscreen/Controller/Map.pm | |
parent | 07bcce9b4129552ceaa1e48998b4f7720929fa20 (diff) |
Map: oh right, $self was needed after all...4.19.5
Diffstat (limited to 'lib/DBInfoscreen/Controller/Map.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm index f3ba92a..9fb1e0e 100644 --- a/lib/DBInfoscreen/Controller/Map.pm +++ b/lib/DBInfoscreen/Controller/Map.pm @@ -61,7 +61,7 @@ sub get_route_indexes { # - position 4 seconds from now # - ... sub estimate_train_positions { - my (%opt) = @_; + my ( $self, %opt ) = @_; my $now = $opt{now}; @@ -189,7 +189,7 @@ sub estimate_train_positions2 { $self->backpropagate_delay( $route[ $i - 1 ], $route[$i] ); # (current position, future positons...) in 2 second steps - @train_positions = estimate_train_positions( + @train_positions = $self->estimate_train_positions( from => $route[ $i - 1 ], to => $route[$i], now => $now, |