Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1475 closed bug (fixed (in master))

Gold remaining not updated in stores

Reported by: magnate Owned by: noz
Milestone: 3.3.0 Keywords: stores


Confirmed reproducible:

  1. Enter a store
  2. Buy something

What should happen: your Gold Remaining should decrease by the amount you just spent

What happens: your Gold Remaining does not change until you exit the store

Change History (4)

comment:1 Changed 9 years ago by noz

This is down to the menu restoring the screen before it refreshes. The code to update the gold figure is working fine, then getting replaced by the image of the old amount.

Either menus should be responsible for redrawing their entire environment on menu_refresh(), or the area saved should be finer grained than "entire screen", so we can save just the area that will be updated. This is difficult if we don't know how much descriptive text will be added.

Perhaps there should be a distinction between "pop-up" menus, such as spell browsing, where the underlying screen needs to be restored, and full screen menus such as stores, knowledge, etc.?

comment:2 Changed 9 years ago by noz

  • Owner set to noz
  • Status changed from new to assigned

comment:3 Changed 9 years ago by magnate

  • Status changed from assigned to pending


comment:4 Changed 9 years ago by magnate

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

In master as of [r5264c45].

Note: See TracTickets for help on using tickets.