From edc12f1ab15ec325c9d2f7f2d61b339f3256e8f7 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 3 Aug 2001 13:00:09 +0000 Subject: [PATCH] --- source/fx/fxbasetrail.cpp | 9 +++------ source/triggers/tsswitch.cpp | 22 +++++++++++++++++++++- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/source/fx/fxbasetrail.cpp b/source/fx/fxbasetrail.cpp index 6022defd9..79a82243f 100644 --- a/source/fx/fxbasetrail.cpp +++ b/source/fx/fxbasetrail.cpp @@ -42,12 +42,9 @@ bool hasParent=getFXParentPos(Pos); /*****************************************************************************/ CFXBaseTrail::sList &CFXBaseTrail::moveHead() { - if ( !( Flags & FX_FLAG_HIDDEN ) ) - { - HeadIdx--; - if (HeadIdx<0) HeadIdx+=LIST_SIZE; - if (ListCountSetVel( velocity ); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void CSteamSwitchEmitterTrigger::toggleVisible() { - m_effect->toggleVisible(); m_active = !m_active; + + CFXSteam *steam = (CFXSteam *) m_effect; + DVECTOR velocity; + velocity.vx = 0; + velocity.vy = -4 * m_active; + if ( m_active ) + { + steam->SetSize( 4 * ONE ); + } + else + { + steam->SetSize( ONE ); + } + steam->SetVel( velocity ); } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////