summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-22 20:23:18 +0000
committertron <tron@openttd.org>2005-01-22 20:23:18 +0000
commit189ca7370762dca088a13d08ccb035e364758abb (patch)
treef77535f8809840126757131b192e611f6d912bdf /viewport.c
parent7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff)
downloadopenttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/viewport.c b/viewport.c
index 96f84e598..d637ec4cb 100644
--- a/viewport.c
+++ b/viewport.c
@@ -320,7 +320,7 @@ static Point GetTileFromScreenXY(int x, int y, int zoom_x, int zoom_y)
return pt;
}
-Point GetTileBelowCursor()
+Point GetTileBelowCursor(void)
{
return GetTileFromScreenXY(_cursor.pos.x, _cursor.pos.y, _cursor.pos.x, _cursor.pos.y);
}
@@ -473,12 +473,12 @@ void AddSortableSpriteToDraw(uint32 image, int x, int y, int w, int h, byte dz,
}
}
-void StartSpriteCombine()
+void StartSpriteCombine(void)
{
_cur_vd->combine_sprites = 1;
}
-void EndSpriteCombine()
+void EndSpriteCombine(void)
{
_cur_vd->combine_sprites = 0;
}
@@ -550,7 +550,7 @@ static uint _stored_tile[200];
static int _stored_track[200];
static int _num_stored;
-void dbg_store_path()
+void dbg_store_path(void)
{
memcpy(_stored_tile, _pushed_tile, sizeof(_stored_tile));
memcpy(_stored_track, _pushed_track, sizeof(_stored_tile));
@@ -565,7 +565,7 @@ void dbg_push_tile(uint tile, int track)
dbg_store_path();
}
-void dbg_pop_tile()
+void dbg_pop_tile(void)
{
_num_push--;
}
@@ -711,7 +711,7 @@ static void DrawTileSelection(const TileInfo *ti)
}
}
-static void ViewportAddLandscape()
+static void ViewportAddLandscape(void)
{
ViewportDrawer *vd = _cur_vd;
int x, y, width, height;
@@ -1427,7 +1427,7 @@ void MarkTileDirty(int x, int y)
);
}
-static void SetSelectionTilesDirty()
+static void SetSelectionTilesDirty(void)
{
int y_size, x_size;
TileHighlightData *thd = _thd_ptr;
@@ -1716,7 +1716,7 @@ void HandleViewportClicked(ViewPort *vp, int x, int y)
}
}
-Vehicle *CheckMouseOverVehicle()
+Vehicle *CheckMouseOverVehicle(void)
{
Window *w;
ViewPort *vp;
@@ -1738,7 +1738,7 @@ Vehicle *CheckMouseOverVehicle()
-void PlaceObject()
+void PlaceObject(void)
{
Point pt;
Window *w;
@@ -1852,7 +1852,7 @@ static byte GetAutorailHT(int x, int y)
}
// called regular to update tile highlighting in all cases
-void UpdateTileSelection()
+void UpdateTileSelection(void)
{
TileHighlightData *thd = _thd_ptr;
Point pt;
@@ -1956,7 +1956,7 @@ void VpSetPresizeRange(uint from, uint to)
thd->next_drawstyle = HT_RECT;
}
-void VpStartPreSizing()
+void VpStartPreSizing(void)
{
_thd.selend.x = -1;
_special_mouse_mode = WSM_PRESIZE;
@@ -2131,7 +2131,7 @@ void VpSelectTilesWithMethod(int x, int y, int method)
}
// while dragging
-bool VpHandlePlaceSizingDrag()
+bool VpHandlePlaceSizingDrag(void)
{
Window *w;
WindowEvent e;
@@ -2225,6 +2225,7 @@ void SetObjectToPlace(int icon, byte mode, WindowClass window_class, WindowNumbe
SetMouseCursor(icon);
}
-void ResetObjectToPlace(){
+void ResetObjectToPlace(void)
+{
SetObjectToPlace(0,0,0,0);
}