Loading

Paste #pfzbrepaq

  1. static void ChangeTileOwner_Industry(TileIndex tile, Owner old_owner, Owner new_owner)
  2. {
  3.     /* If the founder merges, the industry was created by the merged company */
  4.     Industry *i = Industry::GetByTile(tile);
  5.     if (i->founder == old_owner) i->founder = (new_owner == INVALID_OWNER) ? OWNER_NONE : new_owner;

Paste #prwe7i9wl

  1.     if (IsSavegameVersionBefore(196)) {
  2.         for (TileIndex t = 0; t < map_size; t++) {
  3.             /* To be able to restore the original owner of the canal under a dock,
  4.              * the watered part of the dock now stores that owner. Since this
  5.              * feature wasn't previously available, set the owner to OWNER_WATER,

Paste #pb3j5htid

  1. static inline void SetCanalOwner(TileIndex t, Owner o)
  2. {
  3.     assert(GetWaterClass(t) == WATER_CLASS_CANAL);
  4.     assert(o != OWNER_TOWN);
  5.     assert(o != OWNER_DEITY);

Paste #pwmbeu9w0

  1. /**
  2.  * Make a ship depot section.
  3.  * @param t    Tile to place the ship depot section.
  4.  * @param owner_depot Owner of the depot.
  5.  * @param owner_canal Owner of the canal (only set if it's placed on canal).

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);

Paste #pvpxewb4a

  1. /**
  2.  * Build a ship depot.
  3.  * @param tile tile where ship depot is built
  4.  * @param flags type of operation
  5.  * @param p1 bit 0 depot orientation (Axis)

Paste #pnrs6ccbj

  1.     bool add_cost;
  2.     /* At this point we got a flat tile with water at the ground and no bridge over it. Check for ownership */
  3.     if (IsWaterTile(tile) && IsCanal(tile)) {
  4.         ret = EnsureNoVehicleOnGround(tile);
  5.         if (ret.Failed()) return ret;

Paste #pebfhefle

  1.     bool add_cost;
  2.     /* At this point we got a flat tile with water at the ground. Do not demolish canal of OWNER_NONE, but check for ownership */
  3.     if (IsWaterTile(tile) && IsCanal(tile)) {
  4.         ret = EnsureNoVehicleOnGround(tile);
  5.         if (ret.Failed()) return ret;

Paste #p4zzsjzk5

  1. static inline Owner GetCanalOwner(TileIndex t)
  2. {
  3.     if (!HasTileWaterGround(t)) return GetTileOwner(t);
  4.  
  5.     Owner o = (Owner)(GB(_me[t].m6, 0, 2) | (GB(_me[t].m6, 6, 2) << 2));

Paste #pghr7xyan

  1. static inline Owner GetCanalOwner(TileIndex t)
  2. {
  3.     assert(GetWaterClass(t) == WATER_CLASS_CANAL);
  4.  
  5.     if (IsCanal(t)) return GetTileOwner(t);

Paste #pzbhgrhma

  1.             case MP_STATION:
  2.                 c = Company::GetIfValid(GetTileOwner(tile));
  3.                 if (c != NULL && GetStationType(tile) != STATION_AIRPORT && !IsBuoy(tile) && !IsDock(tile)) c->infrastructure.station++;
  4.  
  5.                 switch (GetStationType(tile)) {

Paste #pxeln6blx

  1. diff --git a/CorsixTH/Lua/epidemic.lua b/CorsixTH/Lua/epidemic.lua
  2. index aa93499..df8c9fd 100644
  3. --- a/CorsixTH/Lua/epidemic.lua
  4. +++ b/CorsixTH/Lua/epidemic.lua
  5. @@ -310,20 +310,6 @@ function Epidemic:countInfectedPatients()

Logs Mon Sep 05

  1. Session Start: Mon Sep 05 10:50:13 2016
  2. Session Ident: #openttd
  3. [10:50:13] * Now talking in #openttd
  4. [10:50:13] * Topic is '1.6.1 | Website: *.openttd.org (translator: translator, server list: servers, wiki: wiki, patches & bug-reports: bugs, revision log: hg, release info: finger) | Don't ask to ask, just ask | 'Latest' is not a valid version, 'Most recent' neither | English only | Logs: @logs | #openttd.dev if this channel is really spammy'
  5. [10:50:13] * Set by ChanServ!services@services.oftc.net on Wed Aug 24 19:45:58

Paste #py1q66axy

  1. /**
  2.  * Build a single piece of rail
  3.  * @param tile tile  to build on
  4.  * @param flags operation to perform
  5.  * @param p1 railtype of being built piece (normal, mono, maglev)

Paste #pslvkynrl

  1. Index: src/economy.cpp
  2. ===================================================================
  3. --- src/economy.cpp (revision 27655)
  4. +++ src/economy.cpp (working copy)
  5. @@ -1109,7 +1109,7 @@