fix boss indicator

This commit is contained in:
Andrei Alexeyev 2017-11-23 06:02:54 +02:00
parent ec0a2f277d
commit 2417763155
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -657,6 +657,9 @@ void stage_draw_hud(void) {
glPopMatrix();
}
// Warning: pops matrix!
stage_draw_hud_text(&labels);
// Boss indicator ("Enemy")
if(global.boss) {
float red = 0.5*exp(-0.5*(global.frames-global.boss->lastdamageframe)); // hit indicator
@ -666,7 +669,4 @@ void stage_draw_hud(void) {
draw_texture(VIEWPORT_X+creal(global.boss->pos), 590, "boss_indicator");
glColor4f(1,1,1,1);
}
// Warning: pops matrix!
stage_draw_hud_text(&labels);
}