# HG changeset patch # User celestar # Date 1107353833 0 # Node ID acebb2b01e32460984f6ab5ed74da30cd651d2a2 # Parent 38ec6c6fc266033b440fef30c98b9664dc797da7 (svn r1768) -Codechange: Store town index in _map2 of town tiles Moved house type from _map2 to _map3_hi for MP_HOUSE Moved foundation and roadworks from _map2 to _map3 for MP_STREET This increases game speed by a factor of around 15(!) if many cities are around. Converting an old game is done automagically, but can take a while diff -r 38ec6c6fc266 -r acebb2b01e32 docs/landscape.html --- a/docs/landscape.html Tue Feb 01 22:17:38 2005 +0000 +++ b/docs/landscape.html Wed Feb 02 14:17:13 2005 +0000 @@ -151,7 +151,9 @@ bit 3: NE piece
  • map_owner: owner of the road
  • -
  • map2 bits 0..2: 0 - on bare land, 1 - on grass, 2 - paved, 3 - with streetlights, 5 - tree-lined, 6 - on grass with road works, 7 - paved with road works
  • +
  • map2: Index into the array of towns, 0 for non-town roads
  • +
  • map3_hi bits 0..3: counter for the roadworks
  • +
  • map3_hi bits 4..6: 0 - on bare land, 1 - on grass, 2 - paved, 3 - with streetlights, 5 - tree-lined, 6 - on grass with road works, 7 - paved with road works
  • map3_hi bit 7 set = on snow or desert
  • map5 bit 4 set, bits 7..5 clear: level crossing @@ -159,9 +161,10 @@
  • map5 bit 3: clear - road in the X direction, set - road in the Y direction (railway track always perpendicular)
  • map5 bit 2: set if crossing lights are on
  • map_owner: owner of the railway track
  • -
  • map2 bits 0..2: 0 - on bare land, 1 - on grass, 2 or higher - paved
  • +
  • map2: Index into the array of towns, 0 for non-town roads
  • map3_lo bits 0..7: owner of the road
  • map3_hi bits 3..0: track type
  • +
  • map3_hi bits 4..6: 0 - on bare land, 1 - on grass, 2 or higher - paved
  • map3_hi bit 7 set = on snow or desert
  • map5 bit 5 set: road depot @@ -175,7 +178,8 @@ 3 Town building