diff options
author | terkhen <terkhen@openttd.org> | 2010-04-23 17:29:53 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-04-23 17:29:53 +0000 |
commit | d9dc4c04f4e33b0f89dcfc5ad90b8d598d4bb3a2 (patch) | |
tree | 21c5333bf66bf3c4e0f76f536062f98ab168face /src/train_cmd.cpp | |
parent | f642c01fb4ab5ab13d2fcb9d6d255cdb60232a7a (diff) | |
download | openttd-d9dc4c04f4e33b0f89dcfc5ad90b8d598d4bb3a2.tar.xz |
(svn r19699) -Codechange: Use InvalidateData at the refit window.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index cc2d2d768..3143624bd 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -266,6 +266,7 @@ void Train::ConsistChanged(bool same_length) if (this->IsFrontEngine()) { this->UpdateAcceleration(); SetWindowDirty(WC_VEHICLE_DETAILS, this->index); + InvalidateWindowData(WC_VEHICLE_REFIT, this->index); } } @@ -1144,7 +1145,7 @@ static void NormaliseTrainHead(Train *head) if (!head->IsFrontEngine()) return; /* Update the refit button and window */ - SetWindowDirty(WC_VEHICLE_REFIT, head->index); + InvalidateWindowData(WC_VEHICLE_REFIT, head->index); SetWindowWidgetDirty(WC_VEHICLE_VIEW, head->index, VVW_WIDGET_REFIT_VEH); /* If we don't have a unit number yet, set one. */ |