mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
fpersmissive fixes
This commit is contained in:
+3
-3
@@ -189,8 +189,8 @@ IPhysicsCollisionSet *CPhysicsInterface::FindOrCreateCollisionSet( unsigned int
|
||||
IPhysicsCollisionSet *pSet = FindCollisionSet( id );
|
||||
if ( pSet )
|
||||
return pSet;
|
||||
int index = m_collisionSets.AddToTail();
|
||||
m_pCollisionSetHash->add_elem( (void *)id, (void *)(index+1) );
|
||||
intp index = m_collisionSets.AddToTail();
|
||||
m_pCollisionSetHash->add_elem( (void *)(intp)id, (void *)(intp)(index+1) );
|
||||
return &m_collisionSets[index];
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ IPhysicsCollisionSet *CPhysicsInterface::FindCollisionSet( unsigned int id )
|
||||
{
|
||||
if ( m_pCollisionSetHash )
|
||||
{
|
||||
intp index = (intp)m_pCollisionSetHash->find_elem( (void *)id );
|
||||
intp index = (intp)m_pCollisionSetHash->find_elem( (void *)(intp)id );
|
||||
if ( index > 0 )
|
||||
{
|
||||
Assert( index <= m_collisionSets.Count() );
|
||||
|
||||
@@ -2051,10 +2051,10 @@ public:
|
||||
void *ListIndexToHash( unsigned short listIndex )
|
||||
{
|
||||
unsigned int hash = (unsigned int)listIndex;
|
||||
|
||||
|
||||
// set the high bit, so zero means "not there"
|
||||
hash |= 0x80000000;
|
||||
return (void *)hash;
|
||||
return (void *)(intp)hash;
|
||||
}
|
||||
|
||||
// Lookup this object and get a multilist entry
|
||||
|
||||
Reference in New Issue
Block a user