(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"

This commit is contained in:
darkvater
2004-09-11 19:18:30 +00:00
parent fe8c317d3c
commit d03afadad2
5 changed files with 28 additions and 0 deletions

View File

@@ -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];