When you change the player (shift+P) while you are dragging with the waybuilder, there remains some leftovers on the map.
Fix:
Index: simworld.cc
===================================================================
--- simworld.cc (revision 2821)
+++ simworld.cc (working copy)
@@ -4836,6 +4836,9 @@
}
}
else {
+ // Exit the tool in order to get rid of leftovers.
+ werkzeug[active_player_nr]->exit( this, active_player );
+
renew_menu = (active_player_nr==1 || new_player==1);
active_player_nr = new_player;
active_player = spieler[new_player];
However, I'm not sure, if it causes the right behaviour in a network game...
No, this is not a good idea. I think it will be cleaned up, when you switch back (or at least it should). But one can think of doing this only in offline mode.
I have yet another cursor problem.
I'm not sure your patch will solve this problem too.
How to reproduce:
1. Start simutrans.
1. Click Inspecion tool icon on maion toolbar.
3. Press shift+P.
Result:
Zeiger remains.
In the current version, every player has its individual tool. Thus selecting a tool in one player and changing player should change to the last selected tool. This is an essential requirement for cooperative building on the map with the current structure of tools. Essentially SImutrans then handles up to 15 mousepointers ... (albeit only the active one should remain, that is indeed a bug.)
Tested in r2823.
At least my problem still happen.
Are you using allegro or the SDL version? And by Zeiger remains, do you mean the mouse pointer? I am not sure I got this correct.
Both GDI and SDL.
How to reproduce:
1. Close all windows and toolbars.
2. Open Railroad tools.
3. Close Railroad tools.
4. Press [Shift+P]
@z9999: I can't reproduce your problem.
However the original problem in this thread remains: changing player while dragging leaves the bulldozer at the start position on the map. After changing back, one can continue dragging.
That is intended. But if not desirable, we can use the above exit procedure.
I think it is irritating to keep the bulldozer of the other player on the map. I would vote for the above exit procedure. Who wants to continue dragging after changing players multiple times anyway?