Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-12-28 | (svn r7586) -Fix (FS#473): remove the Landscaping toolbar option from the ↵ | rubidium | |
Road Construction toolbar in the scenario editor, as there is another Lanscaping GUI in the scenario editor and launching that one could confuse users. | |||
2006-11-22 | (svn r7239) Enumerate the widgets in the airport, dock, rail and road toolbars | tron | |
2006-11-16 | (svn r7176) -Fix: remove button was not always disabled when it should have ↵ | glx | |
been (rail/road build toolbar) | |||
2006-11-11 | (svn r7130) -Codechange: Handle the positioning of windows through the ↵ | Darkvater | |
desc->left/top settings with some special values (WDP_) instead of checking window-class. This also fixes FS#172 now that we can position windows arbitrarily and are not restricted to window-classes. | |||
2006-11-10 | (svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc ↵ | Darkvater | |
positioning WDP_AUTO = -1) | |||
2006-10-31 | (svn r7022) -Fix [FS#292]: Properly guard against viewing company-sensitive ↵ | Darkvater | |
information from invalid players (eg spectators) which could lead to crashes. | |||
2006-10-24 | (svn r6925) -Codechange: Be more strict with widget distinctions. WWT_PANEL ↵ | Darkvater | |
is only plain panel, WWT_IMGBTN must contain an image for drawing. Renamed WWT_PANEL_2 to WWT_IMGBTN_2 because that is what it is. Added WWT_PUSHBTN that is either just a pushable button, or a textbutton, which text's drawn dynamically independent of widget. | |||
2006-10-24 | (svn r6924) -Codechange: Give the last (in the widget arrays at least) ↵ | Darkvater | |
sprites meaningful names. | |||
2006-10-14 | (svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to ↵ | Darkvater | |
PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h) | |||
2006-10-03 | (svn r6631) -Codechange: Use accessors for click_state. | belugas | |
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit) | |||
2006-10-03 | (svn r6619) -Codechange: Use accessors for disabled_state. | belugas | |
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit) | |||
2006-09-23 | (svn r6499) -Codechange: Finally, got "byte event" outside of the union ↵ | belugas | |
WindowEvent, which is now a struct | |||
2006-09-05 | (svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because ↵ | Darkvater | |
it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir(). | |||
2006-08-29 | (svn r6205) -CodeChange : use a switch case instead of a cascade of if | belugas | |
-CodeChange : rename var Engine *e to Engine *eng, since we have WindowEvent *e in same fnct -CodeChange : fix a broken tabulation on a switch case. SOme breathing spaces too | |||
2006-08-28 | (svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else ↵ | rubidium | |
{' -> '} else {', tabs between code and comment, etc. | |||
2006-08-22 | (svn r6046) CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered ↵ | belugas | |
label CodeChange : Move almost all fixed strings from ON_PAINT event to Widget array using WWT_LABEL. Feature : All "Select Refit Cargo" are now centered, instead of been left aligned | |||
2006-08-22 | (svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵ | rubidium | |
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct. | |||
2006-08-03 | (svn r5723) - Move the declaration of DrawRoadDepotSprite() out of ↵ | tron | |
functions.h (but I'm not too happy with the new header) - Use DiagDirection instead of plain int for the orientation of the depot graphics - Rename the associated data tables with sprites to something more meaningful | |||
2006-07-26 | (svn r5609) CodeChange : Apply coding style | belugas | |
2006-06-27 | (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular | tron | |
2006-06-10 | (svn r5219) CMD_CLEAR_AREA doesn't use p2, so don't pass anything seemingly ↵ | tron | |
meaningful | |||
2006-06-10 | (svn r5210) Many small changes which piled up: const, unsigned, variable ↵ | tron | |
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc. | |||
2006-05-09 | (svn r4789) - Codechange: rename RoadType to RoadTileType and ↵ | rubidium | |
ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency | |||
2006-04-10 | (svn r4342) Change the first two parameters of commands - virtual pixel ↵ | tron | |
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand() | |||
2006-03-06 | (svn r3774) Remove some more magic numbers and types | tron | |
2006-03-06 | (svn r3773) Shove some semantics down ottd's throat by replacing ints and ↵ | tron | |
magic numbers by enums and some related changes | |||
2006-03-03 | (svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, ↵ | tron | |
because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither) | |||
2006-02-01 | (svn r3511) More whitespace ([FS#46] by Rubidium) | tron | |
2005-12-14 | (svn r3298) Remove unused and write-only variables | tron | |
2005-12-07 | (svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect ↵ | peter1138 | |
their actual use, and add "Close Window" tooltip where missing. | |||
2005-11-14 | (svn r3181) -Bracing | tron | |
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if | |||
2005-11-14 | (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT | tron | |
2005-11-13 | (svn r3173) Use the trinary operator and switch to improve readability | tron | |
Also align short cases nicely | |||
2005-11-09 | (svn r3157) - Feature: Added patch option to link the terraform toolbar to ↵ | peter1138 | |
the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars. | |||
2005-07-24 | (svn r2701) Insert Id tags into all source files | tron | |
2005-07-22 | (svn r2673) Include functions.h directly, not globally via openttd.h | tron | |
2005-07-21 | (svn r2669) Shuffle some more stuff around to reduce dependencies | tron | |
2005-07-13 | (svn r2558) Change the internal map format from 7 arrays to one array of ↵ | tron | |
structs, this doesn't change the saved format for now. It's a stepping stone for further changes. | |||
2005-06-29 | (svn r2496) -Fix: [1179933] When toggling build/remove via keyboard the ↵ | tron | |
selection wasn't correctly redrawn | |||
2005-06-24 | (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" | tron | |
2005-06-06 | (svn r2420) - Codechange: magic number elminitation of cursorsprites. | Darkvater | |
2005-06-02 | (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. | Darkvater | |
2005-02-13 | (svn r1867) Include tables/sprites.h only in files which need it | tron | |
2005-01-29 | (svn r1721) -Feature: It is now possible to build multiple road stations (up ↵ | celestar | |
to 8) on a single station. Thanks to: Truelight for the saveload code, Darkvater and Hackykid for network testing and Tron for proof-reading 1500 lines of diff. | |||
2005-01-29 | (svn r1713) Split off several functions which query/set information about a ↵ | tron | |
single tile from map.h and put them into a seperate file tile.h | |||
2005-01-23 | (svn r1617) -Fix: Ugly hack to only call ResetObjectToPlaceon childwindows ↵ | darkvater | |
of build-toolbar if the window is closed manually (with 'X'); if not checked ResetObjectToPlace is called twice resulting in undesired actions (eg. clicked button is unclicked immediately). | |||
2005-01-23 | (svn r1610) Remove trailing whitespace (last time ever, i hope) | tron | |
2005-01-22 | (svn r1594) Convert all undefined parameter lists to (void) and add the ↵ | tron | |
appropriate warning flags in the Makefile | |||
2005-01-20 | (svn r1573) -Fix: Station and depot building mode is now terminated if the | celestar | |
corresponding windows are closed [ 1104277 ] | |||
2005-01-16 | (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn ↵ | tron | |
them into inline functions and add some asserts |