menus.c: Reset next-viewscreen-redraw counter from M_CloseMenu().

git-svn-id: https://svn.eduke32.com/eduke32@4832 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-12-21 15:51:50 +00:00
parent 8b7c10892c
commit 3a741de9fe

View file

@ -3178,7 +3178,13 @@ void M_CloseMenu(size_t playerID)
CAMERADIST = 65536;
m_animation.start = 0;
m_animation.length = 0;
// Reset next-viewscreen-redraw counter.
// XXX: are there any other cases like that in need of handling?
if (g_curViewscreen >= 0)
actor[g_curViewscreen].t_data[0] = totalclock;
}
walock[TILE_SAVESHOT] = 199;
G_UpdateScreenArea();
}