Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Settings window: Deselect AI slot if it falls outside the range of active AIs #3357

Closed
DorpsGek opened this issue Dec 6, 2009 · 1 comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Dec 6, 2009

Zuu opened the ticket and wrote:

This is a small fix for current trunk (r18515). The issue in trunk is only a UI glitch, it does not cause anything harmful; however, my move up/down patch for the AI Settings window rely on this glitch being fixed.

How to reproduce:

* Open the AISettings window by clicking on AI Settings in the main menu.
* Choose that there should be at least one AI player.
* Select any of the AI slots in the list
* Reduce the number of AI players so that the currently selected AI slot will no longer be included in new games.

Now you can still edit the AI that will not be included in a game. However regular selection (by clicking) on AI slots outside the range of AI slots that are included in a new game is not possible.

This patch makes it so that when the number of AI slots to be included in new games is changed it will deselect the currently selected AI slot if it falls outside of the range of AI slots that will be included in a new game.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3357
@DorpsGek
Copy link
Member Author

DorpsGek commented Dec 9, 2009

Rubidium closed the ticket.

Reason for closing: Fixed

In r18436


This comment was imported from FlySpray: https://bugs.openttd.org/task/3357

@DorpsGek DorpsGek closed this as completed Dec 9, 2009
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant