{
If (timeNow - m_dwLastFireTime & gt;=m_nFireInterVal & amp; & RandInt (0, 100) & lt; 50)
BuyBullet ();
}
Else if (m_nState==EST_PLAYING)
{
If (m_nCannonMul!=nTargetCannon)
{
If (timeNow - m_dwLastFireTime & gt;=m_nFireInterVal) ChanageCannon ();
}
Else if (timeNow - ChanageCannonTick & gt;=60000 & amp; & RandInt (0100) & gt; 95)
{
ChanageCannonTick=GetTickCount ();
NTargetCannon=RandInt (0, CGameConfig: : GetInstance () - & gt; M_nMaxCannon - 1);
}
If (timeNow - m_dwLastFireTime & gt;=m_nFireInterVal)
CodePudding user response:
With casting (int)CodePudding user response:
Such only warning, there will not be wrong?More often appear such, with the solution to the second floor