Changeset 161 in tmcsimulator for trunk/src/atmsdriver


Ignore:
Timestamp:
10/22/2017 05:21:34 PM (9 years ago)
Author:
jdalbey
Message:

Fix defect in comparison in applyColorToHighwayStretch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/ConsoleDriver.java

    r155 r161  
    174174            for(Station station : highway.stations) 
    175175            { 
    176                 if(station.postmile > startPost && station.postmile < endPost) 
     176                if(station.postmile >= startPost && station.postmile <= endPost) 
    177177                { 
    178178                    station.updateByDirection(direction, dotColor); 
     
    192192            for(Station station : highway.stations) 
    193193            { 
    194                 if(station.postmile < startPost && station.postmile > endPost) 
     194                if(station.postmile <= startPost && station.postmile >= endPost) 
    195195                { 
    196196                    station.updateByDirection(direction, dotColor); 
Note: See TracChangeset for help on using the changeset viewer.