Skip to content

Commit

Permalink
Use the new course_status information to display stopped trains.
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblebeefr committed Feb 6, 2014
1 parent 0232169 commit 4dc28b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/raildar/display/TrainDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var TrainDisplay = {
// Update the angle of a
updateAngle : function(train) {
if (train.id_mission in TrainDisplay.markers) {
if (train.id_depart != train.id_next_gare && train.minutes_to_next_gare > 0) {
if (train.id_depart != train.id_next_gare && train.course_status!= -1) {
var angle = (180 + parseInt(train.heading)) % 360;
$(TrainDisplay.markers[train.id_mission]._icon).addClass("circle-arrow-icon");
var marker = $(TrainDisplay.markers[train.id_mission]._icon.firstChild);
Expand Down

0 comments on commit 4dc28b3

Please sign in to comment.