(svn r11689) -Fix: compilation error and most of warnings for gcc 4.3

This commit is contained in:
smatz
2007-12-23 21:02:40 +00:00
parent 22f79df328
commit 17d1b522bc
4 changed files with 12 additions and 6 deletions

View File

@@ -1173,7 +1173,7 @@ enum BuildSignalWidgets {
* @param xrel the relativ x value of the sprite in the grf
* @param xsize the width of the sprite
*/
static const void DrawSignalSprite(const Window *w, byte widget_index, SpriteID image, int8 xrel, uint8 xsize)
static void DrawSignalSprite(const Window *w, byte widget_index, SpriteID image, int8 xrel, uint8 xsize)
{
DrawSprite(image + w->IsWidgetLowered(widget_index), PAL_NONE,
w->widget[widget_index].left + (w->widget[widget_index].right - w->widget[widget_index].left) / 2 - xrel - xsize / 2 +