mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 00:09:18 +02:00
fix air coupler regression in 3fe96854
This commit is contained in:
@@ -20,14 +20,16 @@ AirCoupler::~AirCoupler()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \return 1 when \(straight\) TModel3d \c ModelOn exists
|
* \return 1 when \(straight\) TModel3d \c only ModelOn exists
|
||||||
* \return 2 when \(slanted\) TModel3d \c ModelxOn exists
|
* \return 2 when \(slanted\) TModel3d \c ModelxOn exists
|
||||||
* \return 0 when neither of them exist
|
* \return 0 when neither of them exist
|
||||||
*/
|
*/
|
||||||
int AirCoupler::GetStatus()
|
int AirCoupler::GetStatus()
|
||||||
{
|
{
|
||||||
if (ModelOn) return 1;
|
if (ModelxOn)
|
||||||
if (ModelxOn) return 2;
|
return 2;
|
||||||
|
if (ModelOn)
|
||||||
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user