Loading

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));
  6.  
  7.     /* Canals don't need OWNER_TOWN, and remapping OWNER_NONE
  8.     * to OWNER_TOWN makes it use one bit less. */
  9.     return o == OWNER_TOWN ? OWNER_NONE : o;
  10. }

Version history

Revision # Author Created at
pghr7xyan Anonymous 12 Sep 2016, 17:00:48 UTC Diff

Comments