Skip to content

Commit

Permalink
also fixing train width regression. refs #14393
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 27, 2024
1 parent 71d6575 commit fadbcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/MSTrainHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MSTrainHelper::computeTrainDimensions(double exaggeration) {
}
myCarriageGap = vtype.getParameter().carriageGap * myUpscaleLength;
myLength = totalLength * myUpscaleLength;
myHalfWidth = 0.5 * vtype.getWidth() * myUpscaleLength;
myHalfWidth = 0.5 * vtype.getWidth() * exaggeration;
myNumCarriages = MAX2(1, 1 + (int)((myLength - myLocomotiveLength) / (myDefaultLength + myCarriageGap) + 0.5)); // Round to closest integer.
assert(myNumCarriages > 0);
if (myNumCarriages == 1) {
Expand Down

0 comments on commit fadbcf7

Please sign in to comment.