(svn r25741) -Fix: shift join dates of link graph jobs when using the date cheat

This commit is contained in:
fonsinchen
2013-08-23 18:37:45 +00:00
parent f719b273d3
commit bcbaa92485
2 changed files with 10 additions and 1 deletions

View File

@@ -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);