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

Station catchment area persists after switching tools. #136

Closed
DorpsGek opened this issue Apr 23, 2006 · 5 comments
Closed

Station catchment area persists after switching tools. #136

DorpsGek opened this issue Apr 23, 2006 · 5 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

pitt2 opened the ticket and wrote:

After switching tools away from build station using a hotkey, the station catchment area hilight persists until the first time the mouse is moved over a different tile. Cygwin, current svn.

Reported version: trunk
Operating system: All


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

DorpsGek commented Sep 3, 2006

GrimRC wrote:

I've attached my patch to this comment. I had to make minor corrections to the way the tile-highlight functions work.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/136#comment506

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 3, 2006

GrimRC wrote:

This is a correction of the last patch. Most _thd.var data has a _thd.new_var equivalent so that the old variables aren't lost and proper cleanup of dirty tile-highlighting blocks can occur. However, _thd.offs.x and _thd.offs.y don't have a backup variable, so we can not store them. Openttd doesn't seem to support jumping from one station type (for example, docks) straight to another (for example, road) because of this. This doesn't happen currently, as to go from one station to another you have to go through an intermediary stage, allowing the station catchment area highlight blocks to be cleared before _thd.offs.* is overwritten. Beware though, I could be wrong.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/136#comment507

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 3, 2006

GrimRC wrote:

I forgot to mention there's another similar bug that's also fixed by my patch too. The bug is triggered by pressing the keyboard shortcut for a station builder (such as pressing '9' when the railway builder is open to change to station-building mode). The catchment area is not drawn till the mouse is moved, although the mouse cursor does change correctly to station placement mode.


This comment was imported from FlySpray: https://bugs.openttd.org/task/136#comment508

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 3, 2006

GrimRC wrote:

New patch, removing some superfluous and potentially dangerous SetTileSelectBigSize(0, 0, 0, 0).

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/136#comment510

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 4, 2006

Darkvater closed the ticket.

Reason for closing: Fixed

r6368


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

@DorpsGek DorpsGek closed this as completed Sep 4, 2006
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 6, 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/)
Projects
None yet
Development

No branches or pull requests

1 participant