Mercurial > hg > openttd
changeset 18607:b8fc708229a7 draft
(svn r23454) -Change: Mark company window dirty when moving a rail engine creates or deletes a train.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Fri, 09 Dec 2011 08:10:15 +0000 |
parents | 61e476428939 |
children | 481f1979e346 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1254,6 +1254,7 @@ DeleteWindowById(WC_VEHICLE_REFIT, src->index); DeleteWindowById(WC_VEHICLE_DETAILS, src->index); DeleteWindowById(WC_VEHICLE_TIMETABLE, src->index); + SetWindowDirty(WC_COMPANY, _current_company); /* Delete orders, group stuff and the unit number as we're not the * front of any vehicle anymore. */ @@ -1266,6 +1267,7 @@ * we should be put in the default group. */ if (original_src_head != src && dst_head == src) { SetTrainGroupID(src, DEFAULT_GROUP); + SetWindowDirty(WC_COMPANY, _current_company); } /* Add new heads to statistics */