commit 68377d5376c94b4c49159e2f19a4235a46875347
Author: Jonathan Dowland <jon+github@alcopop.org>
AuthorDate: Wed Sep 2 08:47:35 2015 +0100
Commit: Jonathan Dowland <jon+github@alcopop.org>
CommitDate: Wed Sep 2 09:56:46 2015 +0100
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.
---
src/i_video.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index e93ce43f..a1cfa145 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1067,9 +1067,16 @@ void I_FinishUpdate (void)
// 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