corrected Y alignment of hud_show_homing_warning

This commit is contained in:
zicodxx 2007-02-02 10:17:34 +00:00
parent f6ffb1d784
commit 4edc974310
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20070202
--------
main/gauges.c: corrected Y alignment of hud_show_homing_warning
20070131
--------
main/object.c: If bright ships are enabled cast F1_0*2 light instead of F1_0 which is too dark

View file

@ -1208,16 +1208,16 @@ void hud_show_homing_warning(void)
{
if (Players[Player_num].homing_object_dist >= 0) {
if (GameTime & 0x4000) {
int x=0x8000, y=grd_curcanv->cv_h-Line_spacing;
int x=0x8000, y=grd_curcanv->cv_h-FONTSCALE_Y(Line_spacing);
if (weapon_box_user[0] != WBU_WEAPON || weapon_box_user[1] != WBU_WEAPON) {
if (Cockpit_mode == CM_FULL_SCREEN && (weapon_box_user[0] != WBU_WEAPON || weapon_box_user[1] != WBU_WEAPON)) {
int wy = (weapon_box_user[0] != WBU_WEAPON)?SW_y[0]:SW_y[1];
y = min(y,(wy - Line_spacing - Game_window_y));
y = min(y,(wy - FONTSCALE_Y(Line_spacing) - Game_window_y));
}
gr_set_curfont( GAME_FONT );
gr_set_fontcolor(gr_getcolor(0,31,0),-1 );
gr_printf(x,FONTSCALE_Y(y),TXT_LOCK);
gr_printf(x,y,TXT_LOCK);
}
}
}