fix: fix bug data send from server.
This commit is contained in:
@@ -549,13 +549,13 @@ public class CECHostPlayer : EC_Player
|
||||
// Message MSG_HST_SELTARGET handler
|
||||
void OnMsgHstSelTarget(ECMSG Msg)
|
||||
{
|
||||
if ((int)Msg.dwParam2 == CommandID.SELECT_TARGET)
|
||||
if (Convert.ToInt32(Msg.dwParam2) == CommandID.SELECT_TARGET)
|
||||
{
|
||||
cmd_select_target pCmd = (cmd_select_target)Msg.dwParam1;
|
||||
m_idSelTarget = pCmd.idTarget;
|
||||
m_idUCSelTarget = 0;
|
||||
}
|
||||
else if ((int)Msg.dwParam2 == CommandID.UNSELECT)
|
||||
else if (Convert.ToInt32(Msg.dwParam2) == CommandID.UNSELECT)
|
||||
{
|
||||
m_idSelTarget = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user