{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiehictb25lgcyqv2zgkvt2i6we5qxhk5fphesev57krtgpp74qxia",
    "uri": "at://did:plc:i7budt2wflrcfy6jtvfocbix/app.bsky.feed.post/3mep5qoiauvj2"
  },
  "path": "/viewtopic.php?p=1278038#p1278038",
  "publishedAt": "2026-02-12T21:56:41.000Z",
  "site": "https://www.tt-forums.net",
  "tags": [
    "GoldMine"
  ],
  "textContent": "I'd appreciate if somebody could teach me in detail how it works because I'm having difficulty understanding.\n\nI see in code some people add, substract and even multiply with tiles and then divide by manhattan distance, how does this work?\nHere is example:\ntile1 + (tile1 - tile2) / Manhattan distance.\n\nThis is crazy, there is no documentation about how this works or what it gives.\nThere are cases where tiles are multiplied by something, but my problem is I don't know what the result means.\n\nI know they're just integers, however the map is half negative half positive, so how do you know the result will make sense?\nI've also spotted invalid arithmetic resulting in odd bugs so I'm not sure it's bullet proof.\n\nStatistics: Posted by GoldMine — 12 Feb 2026 21:56\n\n* * *",
  "title": "OpenTTD AIs and Game Scripts • Can somebody teach me tile arithmetic?",
  "updatedAt": "2026-02-12T21:56:41.000Z"
}