In Retro mode, robot's lights always blink.

dev-ui
krzys-h 2013-03-24 21:31:31 +01:00
parent f4e222248f
commit 5810fdd717
2 changed files with 5 additions and 4 deletions

View File

@ -1288,7 +1288,7 @@ bool CBrain::CreateInterface(bool bSelect)
type == OBJECT_BEE || type == OBJECT_BEE ||
type == OBJECT_WORM ) // vehicle? type == OBJECT_WORM ) // vehicle?
{ {
if (!(CRobotMain::GetInstancePointer()->GetRetroMode())) { if (!(m_main->GetRetroMode())) {
ddim.x = dim.x*5.1f; ddim.x = dim.x*5.1f;
ddim.y = dim.y*2.0f; ddim.y = dim.y*2.0f;
pos.x = ox+sx*0.0f; pos.x = ox+sx*0.0f;

View File

@ -6980,7 +6980,7 @@ void CObject::CreateSelectParticle()
} }
} }
if ( m_bSelect || IsProgram() ) if ( m_bSelect || IsProgram() || m_main->GetRetroMode() )
{ {
// Creates particles lens for the headlights. // Creates particles lens for the headlights.
if ( m_type == OBJECT_MOBILEfa || if ( m_type == OBJECT_MOBILEfa ||
@ -7034,7 +7034,7 @@ void CObject::UpdateSelectParticle()
float angle; float angle;
int i; int i;
if ( !m_bSelect && !IsProgram() ) return; if ( !m_bSelect && !IsProgram() && !m_main->GetRetroMode() ) return;
dim[0].x = 1.0f; dim[0].x = 1.0f;
dim[1].x = 1.0f; dim[1].x = 1.0f;
@ -7157,7 +7157,8 @@ void CObject::UpdateSelectParticle()
zoom[2] = 1.0f; zoom[2] = 1.0f;
zoom[3] = 1.0f; zoom[3] = 1.0f;
if ( IsProgram() && // current program? if ( ( IsProgram() || // current program?
m_main->GetRetroMode() ) && // Retro mode?
Math::Mod(m_aTime, 0.7f) < 0.3f ) Math::Mod(m_aTime, 0.7f) < 0.3f )
{ {
zoom[0] = 0.0f; // blinks zoom[0] = 0.0f; // blinks