ref: 68377d5376c94b4c49159e2f19a4235a46875347
parent: f28aa0ce55359ea1744d37cfe2cd5ff88f9db794
author: Jonathan Dowland <jon+github@alcopop.org>
date: Wed Sep 2 04:47:35 EDT 2015
Ensure disk status icon is drawn on top of stbar Due to changed behaviour of the disk status icon drawing, it was getting overdrawn by the status bar ammo indicators. Tweak the logic to ensure the disk is redrawn again until it expires.
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1067,9 +1067,16 @@
// show a disk icon if lumps have been read in the previous tic
- if (readtic && gametic > readtic)
+ if (readtic)
{
- I_EndRead();
+ if (gametic > readtic)
+ {
+ I_EndRead();
+ }
+ else
+ {
+ I_BeginRead();
+ }
}
// draw to screen