Skip to content

Commit

Permalink
leave rail vehicles on the rails ref #13990
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>

Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Oct 26, 2023
1 parent 7a0bffd commit 8dd1a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
//#define DEBUG_REVERSE_BIDI
//#define DEBUG_EXTRAPOLATE_DEPARTPOS
//#define DEBUG_REMOTECONTROL
//#define DEBUG_COND (getID() == "ego")
//#define DEBUG_COND (getID() == "")
//#define DEBUG_COND (true)
#define DEBUG_COND (isSelected())
//#define DEBUG_COND (isSelected())
//#define DEBUG_COND2(obj) (obj->getID() == "ego")
#define DEBUG_COND2(obj) (obj->isSelected())

Expand Down Expand Up @@ -1230,7 +1230,7 @@ MSVehicle::getPosition(const double offset) const {
return Position::INVALID;
}
}
if (isParking()) {
if (isParking() && (myType->getVehicleClass() & SVC_NON_ROAD) == 0) {
if (myStops.begin()->parkingarea != nullptr) {
return myStops.begin()->parkingarea->getVehiclePosition(*this);
} else {
Expand Down

0 comments on commit 8dd1a5d

Please sign in to comment.