src/newgrf.cpp
changeset 8393 a0ab817a8b73
parent 8391 193b256c681c
child 8403 44f101c68312
equal deleted inserted replaced
8392:e80cb3cd512d 8393:a0ab817a8b73
  4050 		 * XY : edges(log2) of each side of the map.
  4050 		 * XY : edges(log2) of each side of the map.
  4051 		 * SS : combination of both X and Y, thus giving the size(log2) of the map
  4051 		 * SS : combination of both X and Y, thus giving the size(log2) of the map
  4052 		 */
  4052 		 */
  4053 		case 0x13: {
  4053 		case 0x13: {
  4054 			byte map_bits = 0;
  4054 			byte map_bits = 0;
  4055 			byte log_X = MapLogX() - 6;
  4055 			byte log_X = MapLogX() - 6; // substraction is required to make the minimal size (64) zero based
  4056 			byte log_Y = MapLogY() - 6;
  4056 			byte log_Y = MapLogY() - 6;
  4057 			byte max_edge = max(log_X, log_Y);
  4057 			byte max_edge = max(log_X, log_Y);
  4058 
  4058 
  4059 			if (log_X == log_Y) { // we have a squared map, since both edges are identical
  4059 			if (log_X == log_Y) { // we have a squared map, since both edges are identical
  4060 				SetBit(map_bits ,0);
  4060 				SetBit(map_bits ,0);