build 190116. minor bug fixes

This commit is contained in:
tmj-fstate
2019-01-16 15:04:32 +01:00
parent 6f48a6e55d
commit cfc35ee32e
4 changed files with 4 additions and 14 deletions

View File

@@ -3173,18 +3173,7 @@ bool TMoverParameters::DecBrakePress(double &brake, double PressLimit, double dp
bool TMoverParameters::BrakeDelaySwitch(int BDS)
{
bool rBDS;
// if (BrakeCtrlPosNo > 0)
if (BrakeHandle == TBrakeHandle::MHZ_EN57)
{
if ((BDS != BrakeOpModeFlag) && ((BDS & BrakeOpModes) > 0))
{
BrakeOpModeFlag = BDS;
rBDS = true;
}
else
rBDS = false;
}
else if (Hamulec->SetBDF(BDS))
if (Hamulec->SetBDF(BDS))
{
BrakeDelayFlag = BDS;
rBDS = true;

View File

@@ -762,7 +762,7 @@ basic_section::insert( shape_node Shape ) {
// re-calculate section radius, in case shape geometry extends outside the section's boundaries
m_area.radius = std::max<float>(
m_area.radius,
static_cast<float>( glm::length( m_area.center - shapedata.area.center ) + shapedata.area.radius ) );
static_cast<float>( glm::length( m_area.center - shapedata.area.center ) + Shape.radius() ) );
if( ( true == shapedata.translucent )
|| ( shapedata.rangesquared_max <= 90000.0 )

View File

@@ -140,6 +140,7 @@ public:
shapenode_data const &
data() const;
// get bounding radius
// NOTE: use this method instead of direct access to the data member, due to lazy radius evaluation
float radius();
private:

View File

@@ -1,5 +1,5 @@
#pragma once
#define VERSION_MAJOR 19
#define VERSION_MINOR 103
#define VERSION_MINOR 116
#define VERSION_REVISION 0