mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 11:09:19 +02:00
build 171027: bounding area calculation fixes, novice ui obstacle indicator, minor traction render enhancement, shadow calculations for tall enough platforms
This commit is contained in:
11
EvLaunch.cpp
11
EvLaunch.cpp
@@ -121,7 +121,7 @@ bool TEventLauncher::Load(cParser *parser)
|
||||
*parser >> token;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
bool TEventLauncher::check_conditions()
|
||||
{ //"renderowanie" wyzwalacza
|
||||
@@ -184,6 +184,13 @@ bool TEventLauncher::IsGlobal() const {
|
||||
&& ( iHour >= 0 )
|
||||
&& ( iMinute >= 0 )
|
||||
&& ( dRadius < 0.0 ) ); // bez ograniczenia zasięgu
|
||||
};
|
||||
}
|
||||
|
||||
// calculates node's bounding radius
|
||||
void
|
||||
TEventLauncher::radius_() {
|
||||
|
||||
m_area.radius = std::sqrt( dRadius );
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user