diff options
Diffstat (limited to 'sp/src/game/client/detailobjectsystem.cpp')
| -rw-r--r-- | sp/src/game/client/detailobjectsystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sp/src/game/client/detailobjectsystem.cpp b/sp/src/game/client/detailobjectsystem.cpp index 7aa871ea..3e211bb0 100644 --- a/sp/src/game/client/detailobjectsystem.cpp +++ b/sp/src/game/client/detailobjectsystem.cpp @@ -1477,7 +1477,7 @@ void CDetailObjectSystem::LevelInitPreEntity() PrecacheMaterial( DETAIL_SPRITE_MATERIAL ); IMaterial *pMat = m_DetailSpriteMaterial; // adjust for non-square textures (cropped) - float flRatio = pMat->GetMappingWidth() / pMat->GetMappingHeight(); + float flRatio = (float)( pMat->GetMappingWidth() ) / pMat->GetMappingHeight(); if ( flRatio > 1.0 ) { for( int i = 0; i<m_DetailSpriteDict.Count(); i++ ) |