forked from mirror/OpenTTD
(svn r24313) -Fix: Some obiwans wrt. clicking on setting buttons.
This commit is contained in:
@@ -435,7 +435,7 @@ struct AISettingsWindow : public Window {
|
||||
bool bool_item = (config_item.flags & SCRIPTCONFIG_BOOLEAN) != 0;
|
||||
|
||||
int x = pt.x - wid->pos_x;
|
||||
if (_current_text_dir == TD_RTL) x = wid->current_x - x;
|
||||
if (_current_text_dir == TD_RTL) x = wid->current_x - 1 - x;
|
||||
x -= 4;
|
||||
/* One of the arrows is clicked (or green/red rect in case of bool value) */
|
||||
if (IsInsideMM(x, 0, SETTING_BUTTON_WIDTH)) {
|
||||
|
Reference in New Issue
Block a user