From 431b09ab796955d1c54a33fb7a481242c819afd2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 6 Feb 2006 10:05:41 +0000 Subject: (svn r3565) - Fix: On loading a game, GetPlayerRailtypes() didn't account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs. --- engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine.c') diff --git a/engine.c b/engine.c index 93704ae8f..b19efceba 100644 --- a/engine.c +++ b/engine.c @@ -428,7 +428,7 @@ void EnginesMonthlyLoop(void) CalcEngineReliability(e); } - if (!(e->flags & ENGINE_AVAILABLE) && (uint16)(_date - min(_date, 365)) >= e->intro_date) { + if (!(e->flags & ENGINE_AVAILABLE) && _date >= (e->intro_date + 365)) { // Introduce it to all players NewVehicleAvailable(e); } else if (!(e->flags & (ENGINE_AVAILABLE|ENGINE_INTRODUCING)) && _date >= e->intro_date) { -- cgit v1.2.3-70-g09d2