Opened 10 years ago

Closed 10 years ago

#1079 closed bug (fixed (in master))

Monster list in gtk client causes errors in terminal window

Reported by: widget-angband@… Owned by:
Milestone: 3.1.2 beta Keywords: gtk blocker
Cc:

Description

The monster list in the GTK client (not the one shown by a terminal subwindow, the dedicated one) causes an error in the terminal running the angband application when a unique appears in the list, referring to 'color-17' not being defined.

Examination of the code reveals that uniques should be purple and OOD monsters should be red, but neither occurs.

The first is due to the fact that only 16 colours are defined in the gtk text buffer, and the second is because monsters are currently coloured red if the player ancestors HAVE killed one AND it is out of depth, by the looks of it.

This patch sets the gtk colour init code to initialise up to MAX_COLORS and negates the OOD monster code. Tested in HEAD with Fang and some obliging memory moss.

Attachments (1)

gtk_monsterlist.patch (1.1 KB) - added by widget-angband@… 10 years ago.
Patch to fix gtk monster list

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by widget-angband@…

Patch to fix gtk monster list

comment:1 Changed 10 years ago by takkaria

  • Keywords blocker added

comment:2 Changed 10 years ago by d_m

  • Resolution set to fixed
  • Status changed from new to closed

The patch has been applied to [88083a3] (SVN r1895). Thanks Widget!

Note: See TracTickets for help on using tickets.