1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 12:36:05 +08:00

Modified SDK for GCC 4.1

This commit is contained in:
Scott Ehlert
2008-09-15 01:33:59 -05:00
parent 325306db96
commit 4c2b8fd6c4
543 changed files with 100067 additions and 91817 deletions

View File

@ -578,8 +578,8 @@ void CPhysicsPushedEntities::StoreMovedEntities( physicspushlist_t &list )
list.localOrigin = m_rootPusherStartLocalOrigin;
list.localAngles = m_rootPusherStartLocalAngles;
list.pushedCount = CountMovedEntities();
Assert(list.pushedCount < ARRAYSIZE(list.pushedEnts));
if ( list.pushedCount > ARRAYSIZE(list.pushedEnts) )
Assert(static_cast<size_t>(list.pushedCount) < ARRAYSIZE(list.pushedEnts));
if ( list.pushedCount > static_cast<int>(ARRAYSIZE(list.pushedEnts)) )
{
list.pushedCount = ARRAYSIZE(list.pushedEnts);
}
@ -1474,7 +1474,7 @@ void CBaseEntity::PerformPush( float movetime )
m_pBlocker = pBlocker;
if (m_pBlocker.ToInt() != hPrevBlocker)
{
if (hPrevBlocker != INVALID_EHANDLE_INDEX)
if (hPrevBlocker != static_cast<int>(INVALID_EHANDLE_INDEX))
{
EndBlocked();
}