Add trainer=1 ResearchCenter

modernize-cmake-1
Fiftytwo 2018-07-12 20:17:09 +02:00
parent d0e29d4875
commit 02eb4623b9
1 changed files with 30 additions and 28 deletions

View File

@ -341,7 +341,8 @@ bool CAutoResearch::CreateInterface(bool bSelect)
oy = 3.0f/480.0f;
sx = 33.0f/640.0f;
sy = 33.0f/480.0f;
if( !m_object->GetTrainer() )
{
pos.x = ox+sx*3.0f;
pos.y = oy+sy*0.5f;
pw->CreateButton(pos, dim, 64+0, EVENT_OBJECT_RTANK);
@ -377,6 +378,7 @@ bool CAutoResearch::CreateInterface(bool bSelect)
pos.x = ox+sx*11.0f;
pos.y = oy+sy*0.5f;
pw->CreateButton(pos, dim, 192+4, EVENT_OBJECT_RBUILDER);
}
pos.x = ox+sx*14.5f;
pos.y = oy+sy*0;