Add trainer=1 SpaceShip

modernize-cmake-1
Fiftytwo 2018-07-12 20:54:58 +02:00
parent 146581e44c
commit 5b2f3111b6
1 changed files with 20 additions and 18 deletions

View File

@ -1187,7 +1187,8 @@ bool CAutoBase::CreateInterface(bool bSelect)
oy = 3.0f/480.0f;
sx = 33.0f/640.0f;
sy = 33.0f/480.0f;
if( !m_object->GetTrainer() )
{
ddim.x = dim.x*1.5f;
ddim.y = dim.y*1.5f;
@ -1207,6 +1208,7 @@ bool CAutoBase::CreateInterface(bool bSelect)
ddim.y = dim.y*1.0f;
pw->CreateButton(pos, ddim, 41, EVENT_OBJECT_LIMIT);
}
}
pos.x = ox+sx*0.0f;
pos.y = oy+sy*0;