Loading

Paste #pbabrqnc1

  1. static inline void MakeShipDepot(TileIndex t, Owner owner_depot, Owner owner_canal, DepotID did, DepotPart part, Axis a, WaterClass original_water_class)
  2. {
  3.     SetTileType(t, MP_WATER);
  4.     SetTileOwner(t, owner_depot);
  5.     SetWaterClass(t, original_water_class);
  6.     if (original_water_class == WATER_CLASS_CANAL) SetCanalOwner(t, owner_canal);
  7.     _m[t].m2 = did;
  8.     _m[t].m3 = 0;
  9.     _m[t].m4 = 0;
  10.     _m[t].m5 = WBL_TYPE_DEPOT << WBL_TYPE_BEGIN | part << WBL_DEPOT_PART | a << WBL_DEPOT_AXIS;
  11.     SB(_me[t].m6, 2, 4, 0);
  12.     _me[t].m7 = 0;
  13. }

Comments