forked from mirrors/0ad
# Updates to construction: Added a start construction net message and made the selected units start working on a newly placed building after you place it.
This was SVN commit r3845.
This commit is contained in:
@@ -467,6 +467,13 @@ void CEntity::update( size_t timestep )
|
||||
break;
|
||||
updateCollisionPatch();
|
||||
return;
|
||||
case CEntityOrder::ORDER_START_CONSTRUCTION:
|
||||
{
|
||||
CEventStartConstruction evt( current->m_data[0].entity );
|
||||
m_orderQueue.pop_front();
|
||||
DispatchEvent( &evt );
|
||||
}
|
||||
break;
|
||||
case CEntityOrder::ORDER_PRODUCE:
|
||||
processProduce( current );
|
||||
m_orderQueue.pop_front();
|
||||
|
||||
Reference in New Issue
Block a user