OpenRCT2/src/openrct2-ui/windows
Ririan 417e5ae7d5
Fix Duplicate Entries in Free Food Ad Campaign
When opening and closing the dropdown box multiple times while attempting to create an ad campaign for free food vouchers, the game would duplicate the available food items in the list each time.

I discovered that it was because the vector wasn't being cleared each time the list was populated it, so an easy fix is to clear it before continuing.
2021-05-07 14:53:53 +02:00
..
About.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Banner.cpp Rename _tileElement to _bannerElement 2021-04-03 22:43:57 +02:00
Changelog.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
Cheats.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
ClearScenery.cpp Replace gfx_draw_string_centred() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
CustomCurrency.cpp Make gfx_draw_string() take a TextPaint argument 2021-02-28 00:26:20 +01:00
DebugPaint.cpp Remove gCurrentFontSpriteBase from some functions 2021-02-28 00:26:20 +01:00
DemolishRidePrompt.cpp Change gfx_draw_string_*_wrapped() to DrawTextWrapped() 2021-02-28 00:23:01 +01:00
Dropdown.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
EditorBottomToolbar.cpp Remove raw coords gfx_fill_rect_inset overload 2021-03-29 09:34:11 -03:00
EditorInventionsList.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
EditorMain.cpp Move some globals to Footpath window 2021-04-14 14:31:10 +02:00
EditorObjectSelection.cpp Merge pull request #14397 from Gymnasiast/refactor/hardcoded-terrain-constants 2021-03-31 20:18:12 +02:00
EditorObjectiveOptions.cpp Remove raw coords gfx_fill_rect_inset overload 2021-03-29 09:34:11 -03:00
EditorScenarioOptions.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Error.cpp Part of #12098: Use ScreenRect on gfx_filter_rect in Error.cpp (#14288) 2021-03-13 22:03:13 -03:00
Finances.cpp Use ScreenCoordsXY on Graph::Draw 2021-03-29 09:34:11 -03:00
Footpath.cpp Create ProvisionalFootpath struct 2021-04-14 14:56:28 +02:00
GameBottomToolbar.cpp Split guest and staff peep variables (#14462) 2021-04-18 17:48:21 +01:00
Guest.cpp Split guest and staff peep variables (#14462) 2021-04-18 17:48:21 +01:00
GuestList.cpp Split guest and staff peep variables (#14462) 2021-04-18 17:48:21 +01:00
InstallTrack.cpp Remove hardcoded terrain style constants from RCT1 and MapGen 2021-03-27 17:34:10 +01:00
Land.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
LandRights.cpp Replace gfx_draw_string_centred() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
LoadSave.cpp Close #14253: Replace font size tokens with adjusted DrawText calls 2021-03-27 14:40:17 +01:00
Main.cpp Move some globals to Footpath window 2021-04-14 14:31:10 +02:00
Map.cpp Remove global from PlaceParkEntranceAction 2021-04-14 15:03:09 +02:00
MapGen.cpp Remove hardcoded terrain style constants from RCT1 and MapGen 2021-03-27 17:34:10 +01:00
MapTooltip.cpp Change gfx_draw_string_*_wrapped() to DrawTextWrapped() 2021-02-28 00:23:01 +01:00
MazeConstruction.cpp Use the RTD instead of ride_type_has_flag() 2021-02-24 14:10:30 +01:00
Multiplayer.cpp Increase usage of gfx_fill_rect_inset that uses ScreenRect 2021-03-29 09:31:05 -03:00
MusicCredits.cpp Increase usage of gfx_fill_rect_inset that uses ScreenRect 2021-03-29 09:31:05 -03:00
NetworkStatus.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
NewCampaign.cpp Fix Duplicate Entries in Free Food Ad Campaign 2021-05-07 14:53:53 +02:00
NewRide.cpp Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
News.cpp Split guest and staff peep variables (#14462) 2021-04-18 17:48:21 +01:00
NewsOptions.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
ObjectLoadError.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
Options.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Park.cpp Use ScreenCoordsXY on Graph methods 2021-03-29 09:34:11 -03:00
Player.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Research.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Ride.cpp Replace hardcoded max number of trains per ride 2021-04-16 18:56:16 +02:00
RideConstruction.cpp Fix placing entrance/exit for ride ID >= 256 2021-04-16 18:56:16 +02:00
RideList.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
SavePrompt.cpp Fix #12410: Refactor WINDOW_WIDGET_TYPES to use strong enum (#13453) 2020-11-27 00:14:20 -03:00
ScenarioSelect.cpp Close #14253: Replace font size tokens with adjusted DrawText calls 2021-03-27 14:40:17 +01:00
Scenery.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
SceneryScatter.cpp Replace gfx_draw_string_centred() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
ServerList.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
ServerStart.cpp Replace gfx_draw_string_left() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
ShortcutKeys.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Sign.cpp Close #13805: Refactor Sign window to class (#14417) 2021-04-12 08:53:58 -03:00
Staff.cpp Split guest and staff peep variables (#14462) 2021-04-18 17:48:21 +01:00
StaffFirePrompt.cpp Use more specific types where appropriate (#14388) 2021-03-25 08:44:25 +00:00
StaffList.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
TextInput.cpp Use unsafe strlen for platforms without strlen_s 2021-03-20 07:27:23 +00:00
Themes.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
TileInspector.cpp Fix #14172: Assertion hit in window_tile_inspector_swap_elements() 2021-03-07 14:53:44 +01:00
TitleCommandEditor.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
TitleEditor.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
TitleExit.cpp Fix #12410: Refactor WINDOW_WIDGET_TYPES to use strong enum (#13453) 2020-11-27 00:14:20 -03:00
TitleLogo.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
TitleMenu.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
TitleOptions.cpp Fix #12410: Refactor WINDOW_WIDGET_TYPES to use strong enum (#13453) 2020-11-27 00:14:20 -03:00
Tooltip.cpp Remove last remnants of gCurrentFontSpriteBase 2021-02-28 00:26:53 +01:00
TopToolbar.cpp Initialise variable to fix Launchpad ppc64el builds 2021-03-29 09:52:52 +02:00
TrackDesignManage.cpp Change gfx_draw_string_*_wrapped() to DrawTextWrapped() 2021-02-28 00:23:01 +01:00
TrackDesignPlace.cpp Fix #13986: OpenGL: Track preview, flip/rotate does not update thumbnail 2021-04-27 11:30:52 +02:00
TrackList.cpp Fix drawing; fix formatting 2021-03-27 15:56:01 +01:00
ViewClipping.cpp Replace gfx_draw_string_left() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
Viewport.cpp Refactor viewport interaction flags and add plugin API 2021-02-18 18:10:29 +00:00
Water.cpp Replace gfx_draw_string_centred() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
Window.h Move some globals to Footpath window 2021-04-14 14:31:10 +02:00