mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-13 15:54:39 +01:00
(svn r1146) -Fix: You can no longer change waypoints whom are owned by somebody else
This commit is contained in:
parent
ef89eb019a
commit
9d05289147
@ -376,6 +376,13 @@ void ShowRenameSignWindow(SignStruct *ss)
|
|||||||
void ShowRenameWaypointWindow(Waypoint *cp)
|
void ShowRenameWaypointWindow(Waypoint *cp)
|
||||||
{
|
{
|
||||||
int id = cp - _waypoints;
|
int id = cp - _waypoints;
|
||||||
|
|
||||||
|
/* Are we allowed to change the name of the waypoint? */
|
||||||
|
if (!CheckTileOwnership(cp->xy)) {
|
||||||
|
ShowErrorMessage(_error_message, STR_CANT_CHANGE_WAYPOINT_NAME, GET_TILE_X(cp->xy) * 16, GET_TILE_Y(cp->xy) * 16);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_rename_id = id;
|
_rename_id = id;
|
||||||
_rename_what = 1;
|
_rename_what = 1;
|
||||||
SetDParam(0, id);
|
SetDParam(0, id);
|
||||||
|
Loading…
Reference in New Issue
Block a user