Mercurial > hg > openttd
diff src/viewport.cpp @ 6247:57363e064324 draft
(svn r9050) -Codechange: Foo(void) -> Foo()
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 07 Mar 2007 11:47:46 +0000 |
parents | 6def6ecb1bf7 |
children | 0789677a15a0 |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -129,7 +129,7 @@ return p; } -void InitViewports(void) { +void InitViewports() { memset(_viewports, 0, sizeof(_viewports)); _active_viewports = 0; } @@ -371,7 +371,7 @@ return pt; } -Point GetTileBelowCursor(void) +Point GetTileBelowCursor() { return GetTileFromScreenXY(_cursor.pos.x, _cursor.pos.y, _cursor.pos.x, _cursor.pos.y); } @@ -534,12 +534,12 @@ if (vd->combine_sprites == 1) vd->combine_sprites = 2; } -void StartSpriteCombine(void) +void StartSpriteCombine() { _cur_vd->combine_sprites = 1; } -void EndSpriteCombine(void) +void EndSpriteCombine() { _cur_vd->combine_sprites = 0; } @@ -725,7 +725,7 @@ } } -static void ViewportAddLandscape(void) +static void ViewportAddLandscape() { ViewportDrawer *vd = _cur_vd; int x, y, width, height; @@ -1445,7 +1445,7 @@ ); } -static void SetSelectionTilesDirty(void) +static void SetSelectionTilesDirty() { int y_size, x_size; int x = _thd.pos.x; @@ -1743,7 +1743,7 @@ } } -Vehicle *CheckMouseOverVehicle(void) +Vehicle *CheckMouseOverVehicle() { const Window *w; const ViewPort *vp; @@ -1760,7 +1760,7 @@ -void PlaceObject(void) +void PlaceObject() { Point pt; Window *w; @@ -1866,7 +1866,7 @@ } // called regular to update tile highlighting in all cases -void UpdateTileSelection(void) +void UpdateTileSelection() { int x1; int y1; @@ -1976,7 +1976,7 @@ if (distance > 1) GuiShowTooltipsWithArgs(STR_MEASURE_LENGTH, 1, &distance); } -static void VpStartPreSizing(void) +static void VpStartPreSizing() { _thd.selend.x = -1; _special_mouse_mode = WSM_PRESIZE; @@ -2385,7 +2385,7 @@ } // while dragging -bool VpHandlePlaceSizingDrag(void) +bool VpHandlePlaceSizingDrag() { Window *w; WindowEvent e; @@ -2477,7 +2477,7 @@ SetMouseCursor(icon, pal); } -void ResetObjectToPlace(void) +void ResetObjectToPlace() { SetObjectToPlace(SPR_CURSOR_MOUSE, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0); }