(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.

This commit is contained in:
rubidium
2010-08-18 20:48:38 +00:00
parent 04d6648c5e
commit 926594b599
13 changed files with 237 additions and 130 deletions

View File

@@ -44,7 +44,6 @@
#include "engine_func.h"
#include "newgrf.h"
#include "station_base.h"
#include "order_backup.h"
#include "table/sprites.h"
#include "table/strings.h"
@@ -2373,6 +2372,5 @@ void CcBuildPrimaryVehicle(const CommandCost &result, TileIndex tile, uint32 p1,
if (result.Failed()) return;
const Vehicle *v = Vehicle::Get(_new_vehicle_id);
OrderBackup::Restore(v);
ShowVehicleViewWindow(v);
}