forked from mirror/OpenTTD
(svn r22713) -Feature: [NewGRF] Per vehicle custom cargo ageing period.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "autoreplace_gui.h"
|
||||
#include "company_base.h"
|
||||
#include "order_backup.h"
|
||||
#include "ship.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
@@ -373,9 +374,15 @@ CommandCost CmdRefitVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
||||
break;
|
||||
|
||||
case VEH_SHIP:
|
||||
v->InvalidateNewGRFCacheOfChain();
|
||||
v->colourmap = PAL_NONE; // invalidate vehicle colour map
|
||||
Ship::From(v)->UpdateCache();
|
||||
break;
|
||||
|
||||
case VEH_AIRCRAFT:
|
||||
v->InvalidateNewGRFCacheOfChain();
|
||||
v->colourmap = PAL_NONE; // invalidate vehicle colour map
|
||||
UpdateAircraftCache(Aircraft::From(v));
|
||||
break;
|
||||
|
||||
default: NOT_REACHED();
|
||||
|
Reference in New Issue
Block a user