Im looking to find out how openttd determines where the center of a vehicle graphic is.
i.e. the values it uses to calculate xrel and yrel in the newgrf files.
in the code, it is these values, im looking to find out where they are set.
Code: Select all
struct Vehicle {
byte z_height; // z-height of vehicle sprite
int8 x_offs; // x offset for vehicle sprite
int8 y_offs; // y offset for vehicle sprite
};