summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-11 19:18:30 +0000
committerdarkvater <darkvater@openttd.org>2004-09-11 19:18:30 +0000
commitd03afadad23fced4bbb11df12a01f26cdbaf6844 (patch)
tree9e1cc9f279d8bed981616951fb82a23051f9d21d /engine.c
parentfe8c317d3ce5b399611ea9d7445b6c0870b041e5 (diff)
downloadopenttd-d03afadad23fced4bbb11df12a01f26cdbaf6844.tar.xz
(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"
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c2
1 files changed, 2 insertions, 0 deletions
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];