Import day length patch

Minor whitespace fixes.

http://www.tt-forums.net/viewtopic.php?p=1148227#p1148227
This commit is contained in:
patch-import
2015-08-09 11:23:07 +01:00
committed by Jonathan G Rennison
parent be00f631da
commit d86a56cbef
12 changed files with 38 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
#include "vehicle_base.h"
#include "cmd_helper.h"
#include "core/sort_func.hpp"
#include "settings_type.h"
#include "table/strings.h"
@@ -384,7 +385,7 @@ void UpdateVehicleTimetable(Vehicle *v, bool travelling)
just_started = !HasBit(v->vehicle_flags, VF_TIMETABLE_STARTED);
if (v->timetable_start != 0) {
v->lateness_counter = (_date - v->timetable_start) * DAY_TICKS + _date_fract;
v->lateness_counter = (_date - v->timetable_start) * DAY_TICKS * _settings_game.economy.day_length_factor + _date_fract + _tick_skip_counter;
v->timetable_start = 0;
}