This commit is contained in:
Charles 2001-06-08 16:51:31 +00:00
parent da1a8aaacc
commit 08db90fda5
4 changed files with 8 additions and 4 deletions

View File

@ -28,7 +28,7 @@ void CSteamDownEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
CFXSteam *steam = (CFXSteam *) m_effect;
steam->SetSize( ( _h >> 4 ) * ONE );
steam->SetSize( ( _w >> 4 ) * ONE );
DVECTOR velocity;
velocity.vx = 0;
velocity.vy = _h >> 4;

View File

@ -30,5 +30,9 @@ void CSteamEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
m_effect = CFX::Create( CFX::FX_TYPE_STEAM, Pos );
CFXSteam *steam = (CFXSteam *) m_effect;
steam->SetSize( ( _h >> 4 ) * ONE );
steam->SetSize( ( _w >> 4 ) * ONE );
DVECTOR velocity;
velocity.vx = 0;
velocity.vy = -_h >> 4;
steam->SetVel( velocity );
}

View File

@ -28,7 +28,7 @@ void CSteamLeftEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
CFXSteam *steam = (CFXSteam *) m_effect;
steam->SetSize( ( _w >> 4 ) * ONE );
steam->SetSize( ( _h >> 4 ) * ONE );
DVECTOR velocity;
velocity.vx = -_w >> 4;
velocity.vy = 0;

View File

@ -28,7 +28,7 @@ void CSteamRightEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
CFXSteam *steam = (CFXSteam *) m_effect;
steam->SetSize( ( _w >> 4 ) * ONE );
steam->SetSize( ( _h >> 4 ) * ONE );
DVECTOR velocity;
velocity.vx = _w >> 4;
velocity.vy = 0;