diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-08-23 18:37:45 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-08-23 18:37:45 +0000 |
commit | bcbaa92485d407463be650397518844484e5f3ff (patch) | |
tree | 02cad53202501b768cac8db0fa4869728c164e39 /src/cheat_gui.cpp | |
parent | f719b273d3c914c1297ca75748d8b64b71c5939e (diff) | |
download | openttd-bcbaa92485d407463be650397518844484e5f3ff.tar.xz |
(svn r25741) -Fix: shift join dates of link graph jobs when using the date cheat
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index c49eb429e..87288279e 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -25,6 +25,7 @@ #include "settings_gui.h" #include "company_gui.h" #include "linkgraph/linkgraph.h" +#include "linkgraph/linkgraphjob.h" #include "widgets/cheat_widget.h" @@ -104,6 +105,8 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2) Date new_date = ConvertYMDToDate(p1, ymd.month, ymd.day); LinkGraph *lg; FOR_ALL_LINK_GRAPHS(lg) lg->ShiftDates(new_date - _date); + LinkGraphJob *lgj; + FOR_ALL_LINK_GRAPH_JOBS(lgj) lgj->ShiftJoinDate(new_date - _date); SetDate(new_date, _date_fract); EnginesMonthlyLoop(); SetWindowDirty(WC_STATUS_BAR, 0); |