Change: [NewGRF] Increase the textstack for all callbacks to 16 registers.
This commit is contained in:
@@ -239,7 +239,7 @@ CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind
|
||||
ind.random = initial_random_bits;
|
||||
ind.founder = founder;
|
||||
|
||||
std::array<int32_t, 4> regs100;
|
||||
std::array<int32_t, 16> regs100;
|
||||
uint16_t callback_res = GetIndustryTileCallback(CBID_INDTILE_SHAPE_CHECK, 0, creation_type << 8 | static_cast<uint32_t>(layout_index), gfx, &ind, ind_tile, regs100);
|
||||
if (callback_res == CALLBACK_FAILED) {
|
||||
if (!IsSlopeRefused(GetTileSlope(ind_tile), its->slopes_refused)) return CommandCost();
|
||||
|
||||
Reference in New Issue
Block a user