mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
game: fix integer division by zero in baseachievement( fixes #87 )
This commit is contained in:
parent
7268663f24
commit
97e7d4a870
@ -276,7 +276,9 @@ void CBaseAchievement::SetShowOnHUD( bool bShow )
|
|||||||
void CBaseAchievement::HandleProgressUpdate()
|
void CBaseAchievement::HandleProgressUpdate()
|
||||||
{
|
{
|
||||||
// which notification is this
|
// which notification is this
|
||||||
int iProgress = m_iCount / m_iProgressMsgIncrement;
|
int iProgress = -1;
|
||||||
|
if( m_iProgressMsgIncrement > 0 ) iProgress = m_iCount / m_iProgressMsgIncrement;
|
||||||
|
|
||||||
// if we haven't already shown this progress step, show it
|
// if we haven't already shown this progress step, show it
|
||||||
if ( iProgress > m_iProgressShown || m_iCount == 1 )
|
if ( iProgress > m_iProgressShown || m_iCount == 1 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user