1
0
forked from 0ad/0ad

Fixed minor type-conversion warnings

This was SVN commit r1026.
This commit is contained in:
Ykkrosh 2004-08-20 14:03:49 +00:00
parent 35baf71fe8
commit 6e9c7dd532
2 changed files with 4 additions and 4 deletions

View File

@ -418,8 +418,8 @@ void CSelectedEntities::contextOrder( bool pushQueue )
{
CGotoCommand *msg=new CGotoCommand();
msg->m_Entity=m_selected[0]->me;
msg->m_TargetX=g_Mouseover.m_worldposition.x;
msg->m_TargetY=g_Mouseover.m_worldposition.y;
msg->m_TargetX=(u32)g_Mouseover.m_worldposition.x;
msg->m_TargetY=(u32)g_Mouseover.m_worldposition.y;
g_Game->GetSimulation()->QueueLocalCommand(msg);
break;
}

View File

@ -84,8 +84,8 @@ uint CSimulation::TranslateMessage(CNetMessage *pMsg, uint clientMask, void *use
case NMT_GotoCommand:
CGotoCommand *msg=(CGotoCommand *)pMsg;
entOrder.m_type=CEntityOrder::ORDER_GOTO;
entOrder.m_data[0].location.x=msg->m_TargetX;
entOrder.m_data[0].location.y=msg->m_TargetY;
entOrder.m_data[0].location.x=(float)msg->m_TargetX;
entOrder.m_data[0].location.y=(float)msg->m_TargetY;
CEntity *ent=msg->m_Entity;
ent->dispatch(new CMessageOrder(entOrder));
break;