Changeset - r26397:10ed060c534b
[Not reviewed]
master
0 1 0
PeterN - 21 months ago 2022-09-25 15:08:52
peter1138@openttd.org
Fix: Open scenario editor date query once. (#10050)

Clearing `_left_button_clicked` causes the button callback to be fired
constantly while the mouse button is held.
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -1152,7 +1152,6 @@ static CallBackFunction ToolbarScenDateP
 
{
 
	SetDParam(0, _settings_game.game_creation.starting_year);
 
	ShowQueryString(STR_JUST_INT, STR_MAPGEN_START_DATE_QUERY_CAPT, 8, w, CS_NUMERAL, QSF_ENABLE_DEFAULT);
 
	_left_button_clicked = false;
 
	return CBF_NONE;
 
}
 

	
0 comments (0 inline, 0 general)