Fixed minor type-conversion warnings
This was SVN commit r1026.
This commit is contained in:
parent
35baf71fe8
commit
6e9c7dd532
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user