mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
This commit is contained in:
parent
d5eb4183b8
commit
6a5c0fabdd
|
@ -502,10 +502,8 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
|
|||
|
||||
case WE_ON_EDIT_TEXT: {
|
||||
if (e->edittext.str[0] != '\0') {
|
||||
Station* st = GetStation(w->window_number);
|
||||
|
||||
_cmd_text = e->edittext.str;
|
||||
DoCommandP(st->xy, w->window_number, 0, NULL,
|
||||
DoCommandP(0, w->window_number, 0, NULL,
|
||||
CMD_RENAME_STATION | CMD_MSG(STR_3031_CAN_T_RENAME_STATION));
|
||||
}
|
||||
} break;
|
||||
|
|
Loading…
Reference in New Issue