From 7560b896440721a92f022b2df951822198c99d46 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 14 Oct 2017 13:03:04 +0200 Subject: [PATCH] 'inventory' icon always appears in OSM --- hud.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hud.cpp b/hud.cpp index a168f509..921e21fc 100644 --- a/hud.cpp +++ b/hud.cpp @@ -46,6 +46,11 @@ int& ikmerge(int i) { else return kills[i-ittypes]; } +bool ikappear(int i) { + if(i == itInventory && inv::on) return true; + return ikmerge(i); + } + const int glyphs = ittypes + motypes; int gfirsttime[glyphs], glasttime[glyphs], gcopy[glyphs], ikland[glyphs]; @@ -56,7 +61,7 @@ int glyph_lastticks; void updatesort() { for(int i=0; i vid.yres * 85/100 && vid.yres > vid.xres * 85/100) { int bycorner[4]; for(int u=0; u<4; u++) bycorner[u] = 0; - for(int i=0; i glyphstoshow; for(int i=0; i