16
0
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:
milek7
2017-11-10 13:39:19 +01:00
parent a686e2ab29
commit cb4e3bbbf3

View File

@@ -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;
} }