1
0
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:
Matei
2006-05-04 07:40:31 +00:00
parent ccafa5204e
commit 2a2d115f4d
10 changed files with 88 additions and 3 deletions
+7
View File
@@ -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();