mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 190116. minor bug fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user