src/newgrf.cpp
branchnoai
changeset 9800 ab08ca2a2018
parent 9732 f8eb3e208514
child 9826 9707ad4c9b60
equal deleted inserted replaced
9799:4f217587c047 9800:ab08ca2a2018
  4089 		case 0x0E: return _patches.freight_trains;
  4089 		case 0x0E: return _patches.freight_trains;
  4090 
  4090 
  4091 		/* empty wagon speed increase */
  4091 		/* empty wagon speed increase */
  4092 		case 0x0F: return 0;
  4092 		case 0x0F: return 0;
  4093 
  4093 
  4094 		/* plane speed factor */
  4094 		/* plane speed factor; our patch option is reversed from TTDPatch's,
  4095 		case 0x10: return 4;
  4095 		 * the following is good for 1x, 2x and 4x (most common?) and...
       
  4096 		 * well not really for 3x. */
       
  4097 		case 0x10:
       
  4098 			switch (_patches.plane_speed) {
       
  4099 				default:
       
  4100 				case 4: return 1;
       
  4101 				case 3: return 2;
       
  4102 				case 2: return 2;
       
  4103 				case 1: return 4;
       
  4104 			}
       
  4105 
  4096 
  4106 
  4097 		/* 2CC colormap base sprite */
  4107 		/* 2CC colormap base sprite */
  4098 		case 0x11: return SPR_2CCMAP_BASE;
  4108 		case 0x11: return SPR_2CCMAP_BASE;
  4099 
  4109 
  4100 		/* map size: format = -MABXYSS
  4110 		/* map size: format = -MABXYSS