18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 02:56:01 +01:00

Merge pull request #280 from MaSzyna-EU07/feat/radio-fuse

Radio fuse: a cut-off in the radio's power supply (eu07/maszyna#438)
This commit is contained in:
2026-11-09 12:53:14 +00:00
committed by GitHub
16 changed files with 198 additions and 27 deletions

View File

@@ -7278,7 +7278,8 @@ void TDynamicObject::RadioStop()
if( Mechanik ) {
// o ile ktoś go prowadzi
if( MoverParameters->SecuritySystem.radiostop_available()
&& MoverParameters->Radio ) {
&& MoverParameters->Radio
&& MoverParameters->RadioFuse ) {
// jeśli pojazd ma RadioStop i jest on aktywny
// HACK cast until math types unification
glm::dvec3 pos = static_cast<glm::dvec3>(vPosition);