Improve order of displaying on HUD

Now command console over hudmessages, hudmessages over flag icons/scores
and player's stats.
Also fixed length of the line in command console.
This commit is contained in:
aurhat
2015-12-13 22:10:30 +01:00
parent 957f1e49ca
commit cc2ac85dd5
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ int rendercommand(int x, int y, int w)
int width, height;
text_bounds(s, width, height, w);
y -= height - FONTH;
draw_text(s, x, y, 0xFF, 0xFF, 0xFF, 0xFF, cmdline.pos>=0 ? cmdline.pos + strlen(useprompt) + 1 : (int)strlen(s), w);
if (x >= 0) draw_text(s, x, y, 0xFF, 0xFF, 0xFF, 0xFF, cmdline.pos>=0 ? cmdline.pos + strlen(useprompt) + 1 : (int)strlen(s), w);
return height;
}