game.c: fix last step of p->visibility approaching ud.const_visibility.

git-svn-id: https://svn.eduke32.com/eduke32@4401 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-03-29 21:48:40 +00:00
parent 833fe67826
commit da0c6d00ca
1 changed files with 3 additions and 0 deletions

View File

@ -4794,7 +4794,10 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio)
const int32_t visinc = visdif>>2;
if (klabs(visinc) == 0)
{
p->visibility = ud.const_visibility;
break;
}
p->visibility += visinc;
lastvist = totalclock;