newgrf.c
changeset 3862 898c8212afa1
parent 3845 c3cd4b825c2f
child 3863 62f1303f4bb4
equal deleted inserted replaced
3861:1bc622ec64e8 3862:898c8212afa1
   435 					SB(rvi[i].weight, 8, 8, weight);
   435 					SB(rvi[i].weight, 8, 8, weight);
   436 				}
   436 				}
   437 			}
   437 			}
   438 			break;
   438 			break;
   439 
   439 
       
   440 		case 0x25: /* User-defined bit mask to set when checking veh. var. 42 */
       
   441 			FOR_EACH_OBJECT rvi[i].user_def_data = grf_load_byte(&buf);
       
   442 			break;
       
   443 
   440 		case 0x27: /* Miscellaneous flags */
   444 		case 0x27: /* Miscellaneous flags */
   441 			FOR_EACH_OBJECT ei[i].misc_flags = grf_load_byte(&buf);
   445 			FOR_EACH_OBJECT ei[i].misc_flags = grf_load_byte(&buf);
   442 			break;
   446 			break;
   443 
   447 
   444 		case 0x28: /* Cargo classes allowed */
   448 		case 0x28: /* Cargo classes allowed */
   452 		/* TODO */
   456 		/* TODO */
   453 		/* Fall-through for unimplemented one byte long properties. */
   457 		/* Fall-through for unimplemented one byte long properties. */
   454 		case 0x1C: /* Refit cost */
   458 		case 0x1C: /* Refit cost */
   455 		case 0x1F: /* Tractive effort */
   459 		case 0x1F: /* Tractive effort */
   456 		case 0x20: /* Air drag */
   460 		case 0x20: /* Air drag */
   457 		case 0x25: /* User-defined bit mask to set when checking veh. var. 42 */
       
   458 		case 0x26: /* Retire vehicle early */
   461 		case 0x26: /* Retire vehicle early */
   459 			/* TODO */
   462 			/* TODO */
   460 			FOR_EACH_OBJECT grf_load_byte(&buf);
   463 			FOR_EACH_OBJECT grf_load_byte(&buf);
   461 			ret = true;
   464 			ret = true;
   462 			break;
   465 			break;