newgrf_engine.c
changeset 5380 8ea58542b6e0
parent 5338 a78592405640
equal deleted inserted replaced
5379:929378a0014f 5380:8ea58542b6e0
   151 {
   151 {
   152 	assert(engine < TOTAL_NUM_ENGINES);
   152 	assert(engine < TOTAL_NUM_ENGINES);
   153 	assert(cargo < NUM_GLOBAL_CID);
   153 	assert(cargo < NUM_GLOBAL_CID);
   154 
   154 
   155 	if (engine_custom_sprites[engine][cargo] != NULL) {
   155 	if (engine_custom_sprites[engine][cargo] != NULL) {
   156 		DEBUG(grf, 6)("SetCustomEngineSprites: engine `%d' cargo `%d' already has group -- replacing.", engine, cargo);
   156 		grfmsg(6, "SetCustomEngineSprites: engine %d cargo %d already has group -- replacing", engine, cargo);
   157 	}
   157 	}
   158 	engine_custom_sprites[engine][cargo] = group;
   158 	engine_custom_sprites[engine][cargo] = group;
   159 }
   159 }
   160 
   160 
   161 /**
   161 /**
   181 {
   181 {
   182 	assert(engine >= AIRCRAFT_ENGINES_INDEX);
   182 	assert(engine >= AIRCRAFT_ENGINES_INDEX);
   183 	assert(engine < AIRCRAFT_ENGINES_INDEX + NUM_AIRCRAFT_ENGINES);
   183 	assert(engine < AIRCRAFT_ENGINES_INDEX + NUM_AIRCRAFT_ENGINES);
   184 
   184 
   185 	if (heli_rotor_custom_sprites[engine - AIRCRAFT_ENGINES_INDEX] != NULL) {
   185 	if (heli_rotor_custom_sprites[engine - AIRCRAFT_ENGINES_INDEX] != NULL) {
   186 		DEBUG(grf, 6)("SetRotorOverrideSprites: engine `%d' already has group -- replacing.", engine);
   186 		grfmsg(6, "SetRotorOverrideSprites: engine %d already has group -- replacing.", engine);
   187 	}
   187 	}
   188 	heli_rotor_custom_sprites[engine - AIRCRAFT_ENGINES_INDEX] = group;
   188 	heli_rotor_custom_sprites[engine - AIRCRAFT_ENGINES_INDEX] = group;
   189 }
   189 }
   190 
   190 
   191 /** Unload all rotor override sprite groups */
   191 /** Unload all rotor override sprite groups */
   801 				case 0x66: return MapAircraftMovementAction(v); // Current movement action
   801 				case 0x66: return MapAircraftMovementAction(v); // Current movement action
   802 			}
   802 			}
   803 			break;
   803 			break;
   804 	}
   804 	}
   805 
   805 
   806 	DEBUG(grf, 1)("Unhandled vehicle property 0x%X, type 0x%X", variable, v->type);
   806 	DEBUG(grf, 1, "Unhandled vehicle property 0x%X, type 0x%X", variable, v->type);
   807 
   807 
   808 	*available = false;
   808 	*available = false;
   809 	return -1;
   809 	return -1;
   810 }
   810 }
   811 
   811