I need to quit trying to be clever

git-svn-id: https://svn.eduke32.com/eduke32@5846 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-09-04 04:30:30 +00:00
parent ad4bb9c25d
commit 0025c8c96a

View file

@ -4273,7 +4273,7 @@ void P_EndLevel(void)
}
else
{
ud.level_number = (++ud.level_number >= MAXLEVELS) ? ud.level_number : 0;
ud.level_number = (++ud.level_number < MAXLEVELS) ? ud.level_number : 0;
ud.m_level_number = ud.level_number;
}
}