From da0c6d00ca87a26c5b6ffe6d0c9d934b3d0de7b5 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 29 Mar 2014 21:48:40 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 3567f3b75..5079e3f29 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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;