This commit is contained in:
parent
da1a8aaacc
commit
08db90fda5
@ -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;
|
||||
|
@ -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 );
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user