mirror of https://github.com/OpenTTD/OpenTTD
(svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite
parent
cc61dd4890
commit
7a7847ed61
17
gfx.c
17
gfx.c
|
@ -1481,23 +1481,6 @@ static void GfxMainBlitter(const Sprite* sprite, int x, int y, int mode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static void GfxScalePalette(int pal, byte scaling)
|
|
||||||
{
|
|
||||||
const Colour* src;
|
|
||||||
uint i;
|
|
||||||
|
|
||||||
GfxInitPalettes();
|
|
||||||
|
|
||||||
src = GET_PALETTE(pal);
|
|
||||||
for (i = 0; i < lengthof(_cur_palette); i++) {
|
|
||||||
_cur_palette[i].r = src[i].r * scaling >> 8;
|
|
||||||
_cur_palette[i].g = src[i].g * scaling >> 8;
|
|
||||||
_cur_palette[i].b = src[i].b * scaling >> 8;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void DoPaletteAnimations(void);
|
void DoPaletteAnimations(void);
|
||||||
|
|
||||||
void GfxInitPalettes(void)
|
void GfxInitPalettes(void)
|
||||||
|
|
22
vehicle.h
22
vehicle.h
|
@ -141,28 +141,6 @@ typedef struct VehicleShip {
|
||||||
byte state;
|
byte state;
|
||||||
} VehicleShip;
|
} VehicleShip;
|
||||||
|
|
||||||
// not used ATM
|
|
||||||
struct WorldSprite {
|
|
||||||
struct WorldSprite *next; // next sprite in hash chain
|
|
||||||
uint16 image; // sprite number for this vehicle
|
|
||||||
|
|
||||||
// screen coordinates
|
|
||||||
int16 left, top, right, bottom;
|
|
||||||
|
|
||||||
// world coordinates
|
|
||||||
int16 x;
|
|
||||||
int16 y;
|
|
||||||
byte z;
|
|
||||||
|
|
||||||
int8 x_offs; // x offset for vehicle sprite
|
|
||||||
int8 y_offs; // y offset for vehicle sprite
|
|
||||||
|
|
||||||
byte width; // width of vehicle sprite
|
|
||||||
byte height; // height of vehicle sprite
|
|
||||||
byte depth; // depth of vehicle sprite
|
|
||||||
|
|
||||||
byte flags; // draw flags
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Vehicle {
|
struct Vehicle {
|
||||||
byte type; // type, ie roadven,train,ship,aircraft,special
|
byte type; // type, ie roadven,train,ship,aircraft,special
|
||||||
|
|
Loading…
Reference in New Issue