HomeWildfire Games

GameSetup: fix selecting a map with up/down keys.

Description

GameSetup: fix selecting a map with up/down keys.

Fixes rP25077.
Using down/up to change the map in the map selection dropdown in the gamesetup has a one-element lag. The reason is that on dropdown up/down, two events are sent:

  • first the current highlighted item is selected (it's usually the selected one).
  • then the new item is selected.

Because of faulty timer logic, only the first update went through.

Differential Revision: https://code.wildfiregames.com/D3774