Link graph: Also change start_date_ticks when using date cheat

See: #580
This commit is contained in:
Jonathan G Rennison
2023-07-30 11:32:46 +01:00
parent c263d941da
commit ccbf789ea0

View File

@@ -312,10 +312,14 @@ public:
inline DateTicks StartDateTicks() const { return start_date_ticks; } inline DateTicks StartDateTicks() const { return start_date_ticks; }
/** /**
* Change the join date on date cheating. * Change the start and join dates on date cheating.
* @param interval Number of days to add. * @param interval Number of days to add.
*/ */
inline void ShiftJoinDate(int interval) { this->join_date_ticks += interval * DAY_TICKS; } inline void ShiftJoinDate(int interval)
{
this->join_date_ticks += interval * DAY_TICKS;
this->start_date_ticks += interval * DAY_TICKS;
}
/** /**
* Get the link graph settings for this component. * Get the link graph settings for this component.