16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 12:19:18 +02:00

TAirCoupler - Delete old comments.

This commit is contained in:
Kamil Lewan
2017-10-26 20:30:38 +02:00
parent 3fe968544a
commit 7422beffcc
2 changed files with 7 additions and 11 deletions

View File

@@ -79,13 +79,10 @@ void TAirCoupler::Load(cParser *Parser, TModel3d *Model)
void TAirCoupler::Update()
{
// if ((pModelOn!=NULL) && (pModelOn!=NULL)) // legacy bullshitt alert
{
if (ModelOn)
ModelOn->iVisible = On;
if (ModelOff)
ModelOff->iVisible = !(On || xOn);
if (ModelxOn)
ModelxOn->iVisible = xOn;
}
if (ModelOn)
ModelOn->iVisible = On;
if (ModelOff)
ModelOff->iVisible = !(On || xOn);
if (ModelxOn)
ModelxOn->iVisible = xOn;
}

View File

@@ -15,7 +15,7 @@ http://mozilla.org/MPL/2.0/.
class TAirCoupler
{
private:
// TButtonType eType; //?
// TButtonType eType;
TSubModel *ModelOn, *ModelOff, *ModelxOn;
bool On;
bool xOn;
@@ -28,7 +28,6 @@ public:
void Clear();
void Init(std::string const &asName, TModel3d *Model);
void Load(cParser *Parser, TModel3d *Model);
// inline bool Active() { if ((ModelOn)||(ModelOff)) return true; return false;};
int GetStatus();
inline void TurnOn()
{