The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Nazalassa on August 10, 2025, 08:55:41 AM

Title: r11737: Cursors always use the first player color
Post by: Nazalassa on August 10, 2025, 08:55:41 AM
When a tool is selected, its cursor is drawn on the map. If the cursor has player color on it, we would expect it to be of the right player color. However, it is not.

Steps to reproduce:

Expected results:
The player color parts on the cursor should be of the active player's player color.

Observed results:
The player color parts on the cursor are always of the first player's color (i.e human player).

Attached is a patch that fixes this by setting the cursor's owner when the active player changes. (Previously the cursor was ownerless.)


P.S: is it correct to submit a bug report here when I have a patch, or should I rather put it in another subforum (e.g Patches & Projects)?
Title: Re: r11737: Cursors always use the first player color
Post by: ceeac on August 30, 2025, 06:29:49 AM
Thanks, incorporated in r11744.

Quote from: Nazalassa on August 10, 2025, 08:55:41 AMP.S: is it correct to submit a bug report here when I have a patch, or should I rather put it in another subforum (e.g Patches & Projects)?
IMO if there is a patch, it is better to post directly in Patches so the patch does not get lost, but for small one-line patches like this one it does not matter much, I guess.