Fixing regression from rev1038 which broke showing laser level or quadness in cockpit and statusbar

This commit is contained in:
zicodxx 2010-06-17 09:46:45 +00:00
parent e1572135a2
commit 8a3aeb01e8
2 changed files with 51 additions and 50 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20100617
--------
main/weapons.c: If picking up one missile out of a four-pack, use singular description instead of plural
main/gauges.c: Fixing regression from rev1038 which broke showing laser level or quadness in cockpit and statusbar
20100615
--------

View file

@ -1706,7 +1706,7 @@ void draw_weapon_info_sub(int info_index,gauge_box *box,int pic_x,int pic_y,char
gr_printf(text_x,text_y,name);
// For laser, show level and quadness
if (info_index == LASER_ID)
if (info_index == LASER_INDEX)
{
gr_printf(text_x,text_y+LINE_SPACING, "%s: %i", TXT_LVL, Players[Player_num].laser_level+1);
if (Players[Player_num].flags & PLAYER_FLAGS_QUAD_LASERS)