ship_cmd.c
changeset 358 6eb0d5ec99b1
parent 337 66647f97e7c0
child 410 8de2aaf20800
equal deleted inserted replaced
357:912b71f33867 358:6eb0d5ec99b1
    22 void DrawShipEngine(int x, int y, int engine, uint32 image_ormod)
    22 void DrawShipEngine(int x, int y, int engine, uint32 image_ormod)
    23 {
    23 {
    24 	int spritenum = ship_vehicle_info(engine).image_index;
    24 	int spritenum = ship_vehicle_info(engine).image_index;
    25 
    25 
    26 	if (is_custom_sprite(spritenum)) {
    26 	if (is_custom_sprite(spritenum)) {
    27 		int sprite = GetCustomEngineSprite(engine, 0xffff, CID_PURCHASE, 0, 0, 6);
    27 		int sprite = GetCustomVehicleIcon(engine, 6);
    28 
    28 
    29 		if (sprite) {
    29 		if (sprite) {
    30 			DrawSprite(sprite | image_ormod, x, y);
    30 			DrawSprite(sprite | image_ormod, x, y);
    31 			return;
    31 			return;
    32 		}
    32 		}