From d03afadad23fced4bbb11df12a01f26cdbaf6844 Mon Sep 17 00:00:00 2001 From: darkvater Date: Sat, 11 Sep 2004 19:18:30 +0000 Subject: (svn r206) -Fix: [1001540] i lost all wagons. Half-assed fix for lost wagons. But now users can at least fix this problem. Consolecommand: "resetengines" --- engine.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine.c') diff --git a/engine.c b/engine.c index 67c8b9239..d7b6d30e0 100644 --- a/engine.c +++ b/engine.c @@ -7,6 +7,7 @@ #include "vehicle.h" #include "news.h" #include "saveload.h" +#include "console.h" #define UPDATE_PLAYER_RAILTYPE(e,p) if ((byte)(e->railtype + 1) > p->max_railtype) p->max_railtype = e->railtype + 1; @@ -164,6 +165,7 @@ void StartupEngines() AdjustAvailAircraft(); } +_iconsole_var * IConsoleResetEngines(byte argc, byte* argv[], byte argt[]) {StartupEngines(); return 0;} uint32 _engine_refit_masks[256]; -- cgit v1.2.3-54-g00ecf