房间费用配置第一项被重置,每次都要重新配置
2018-08-23 本文已影响10人
honaf
-
问题:房间费用配置第一项被重置
-
原因:DlgServerWizard.cpp中将第一项重新赋值为默认值
if (i == 0)
{
if (m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwPlayTurnLimit == 0 || m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwIniScore == 0
|| m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwPayFee == 0)
if (m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwPlayTurnLimit == 0 || m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwIniScore == 0
|| m_pCreateRoomRightAndFee->stCreateRoomPayFee[i].dwPayFee == 0)
{
SetDlgItemInt(IDC_EDIT_TURN_NUM + i * 3, 5);
SetDlgItemInt(IDC_EDIT_CREATE_FEE + i * 3, 1);
SetDlgItemInt(IDC_EDIT_ROOM_INISCORE + i * 3, 1000);
}
}
- 此处赋值为默认值代码注释即可