CEditor::LoadCurrentMap
implementation. If you find a better way that would be preferable.CEditor::LoadCurrentMap
implementation. If you find a better way that would be preferable. root=UUID=<insertrootuuidhere>
int
. We use true
as success and false
as failure for functions returning bool
.
These are currently opposites, and since you can't see (at a call site) whether a function returns int
or bool
, it seems error-prone to me. I think it'd make sense to unify thi...c++
if(MsgType == NETMSGTYPE_SV_KILLMSGPLUS)
{
CNetMsg_Sv_KillMsgPlus *pMsg = (CNetMsg_Sv_KillMsgPlus *)pRawMsg;
m_Sendable = pMsg->m_Sendable;
m_TeamSizeCarrier = minimum(pMsg->m_TeamSize, 4);
if(m_Sendable = true)
m_VictimSkinCurrent = 0;
dbg_msg("sendable", "%d, %d", pMsg->m_Sendable, m_Sendable);
dbg_msg("teamsize", "%d, %d", pMsg->m_TeamSize, m_TeamSizeCarrier);
}
if(m_Sendable = true)