newgrf.c
changeset 3355 e414a0b104a6
parent 3095 19084629d27a
child 3488 7bf7e30fb865
equal deleted inserted replaced
3354:245157a5eafe 3355:e414a0b104a6
   353 
   353 
   354 				if (traction <= 0x07) {
   354 				if (traction <= 0x07) {
   355 					engclass = 0;
   355 					engclass = 0;
   356 				} else if (traction <= 0x27) {
   356 				} else if (traction <= 0x27) {
   357 					engclass = 1;
   357 					engclass = 1;
       
   358 				} else if (traction <= 0x31) {
       
   359 					engclass = 2;
       
   360 					ei[i].railtype = RAILTYPE_ELECTRIC;
   358 				} else if (traction <= 0x41) {
   361 				} else if (traction <= 0x41) {
   359 					engclass = 2;
   362 					engclass = 2;
   360 				} else {
   363 				} else {
   361 					break;
   364 					break;
   362 				}
   365 				}
  2307 	                   | (1 << 0x16)  /* eternalgame */
  2310 	                   | (1 << 0x16)  /* eternalgame */
  2308 	                   | (1 << 0x17)  /* newtrains */
  2311 	                   | (1 << 0x17)  /* newtrains */
  2309 	                   | (1 << 0x18)  /* newrvs */
  2312 	                   | (1 << 0x18)  /* newrvs */
  2310 	                   | (1 << 0x19)  /* newships */
  2313 	                   | (1 << 0x19)  /* newships */
  2311 	                   | (1 << 0x1A)  /* newplanes */
  2314 	                   | (1 << 0x1A)  /* newplanes */
  2312 	                   | (_patches.signal_side ? (1 << 0x1B) : 0);          /* signalsontrafficside */
  2315 	                   | (_patches.signal_side ? (1 << 0x1B) : 0)           /* signalsontrafficside */
  2313 	                   /* Uncomment following if you want to fool the GRF file.
  2316 	                   | (1 << 0x1C); /* electrifiedrailway */
  2314 	                    * Some GRF files will refuse to load without this
       
  2315 	                    * but you can still squeeze something from them even
       
  2316 	                    * without the support - i.e. USSet. --pasky */
       
  2317 			               //| (1 << 0x1C); /* electrifiedrailway */
       
  2318 
  2317 
  2319 	_ttdpatch_flags[2] = (_patches.build_on_slopes ? (1 << 0x0D) : 0)       /* buildonslopes */
  2318 	_ttdpatch_flags[2] = (_patches.build_on_slopes ? (1 << 0x0D) : 0)       /* buildonslopes */
  2320 	                   | (_patches.build_on_slopes ? (1 << 0x15) : 0)       /* buildoncoasts */
  2319 	                   | (_patches.build_on_slopes ? (1 << 0x15) : 0)       /* buildoncoasts */
  2321 	                   | (1 << 0x16)  /* canals */
  2320 	                   | (1 << 0x16)  /* canals */
  2322 	                   | (1 << 0x17)  /* newstartyear */
  2321 	                   | (1 << 0x17)  /* newstartyear */