oldloader.c
changeset 2916 b687477adcba
parent 2814 872583ce2ae7
child 2951 2de6d3a59743
equal deleted inserted replaced
2915:e08f661f1b8e 2916:b687477adcba
  1572 	}
  1572 	}
  1573 
  1573 
  1574 	for (i = 0; i < OLD_MAP_SIZE; i ++) {
  1574 	for (i = 0; i < OLD_MAP_SIZE; i ++) {
  1575 		if (IsTileType(i, MP_RAILWAY)) {
  1575 		if (IsTileType(i, MP_RAILWAY)) {
  1576 			/* We save presignals different from TTDPatch, convert them */
  1576 			/* We save presignals different from TTDPatch, convert them */
  1577 			if ((_m[i].m5 & 0xC0) == 0x40) {
  1577 			if (GB(_m[i].m5, 6, 2) == 1) {
  1578 				/* This byte is always zero in TTD for this type of tile */
  1578 				/* This byte is always zero in TTD for this type of tile */
  1579 				if (_m[i].m4) /* Convert the presignals to our own format */
  1579 				if (_m[i].m4) /* Convert the presignals to our own format */
  1580 					_m[i].m4 = (_m[i].m4 >> 1) & 7;
  1580 					_m[i].m4 = (_m[i].m4 >> 1) & 7;
  1581 			}
  1581 			}
  1582 			/* TTDPatch stores PBS things in L6 and all elsewhere; so we'll just
  1582 			/* TTDPatch stores PBS things in L6 and all elsewhere; so we'll just