Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-04-10 | (svn r4346) CodeChange : Add and Use Accessors to Industry's Stage and ↵ | belugas | |
Counter construction. Removed last direct map access from Disaster_cmd.c as well. Based on work from Rubidium in tfc_newmap | |||
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-04-03 | (svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE | celestar | |
2006-03-26 | (svn r4120) Use the new station functions where appropriate | tron | |
2006-03-24 | (svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the ↵ | tron | |
station from a tile | |||
2006-03-24 | (svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. ↵ | tron | |
the industry from a tile | |||
2006-03-19 | (svn r3981) More work for the rail accessing functions and enums | tron | |
2006-03-08 | (svn r3787) Use DirToDiagDir() instead of >> 1 | tron | |
2006-03-08 | (svn r3786) More work for DirDiff | tron | |
2006-03-08 | (svn r3783) Replace further ints and magic numbers by Direction, ↵ | tron | |
DiagDirection and friends | |||
2006-02-06 | (svn r3564) Several smaller changes: | tron | |
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements | |||
2006-02-01 | (svn r3511) More whitespace ([FS#46] by Rubidium) | tron | |
2006-02-01 | (svn r3510) Fiddle with whitespace and parentheses | tron | |
2005-11-17 | (svn r3216) - Fix (regression): endless loop introduced in revision 3190 | Darkvater | |
2005-11-16 | (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of ↵ | truelight | |
magicnumbers) -Codechange: IsRailWaypoint should take 'tile', not 'm5' | |||
2005-11-16 | (svn r3204) Make handling of clicking on vehicles a bit less ugly by ↵ | tron | |
avoiding function declarations in .c files and unnecessary indirection | |||
2005-11-16 | (svn r3197) Use a better bias so you can directly see the date range a ↵ | tron | |
disaster can happen in | |||
2005-11-15 | (svn r3190) Turn some loops into canonical for loop form | tron | |
2005-11-15 | (svn r3184) GB/SB | tron | |
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 r3179) - RandomRange() and RandomTile() instead of home brewed versions | tron | |
- CHANCE*() instead of mumbling strange numbers | |||
2005-11-14 | (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT | tron | |
2005-10-22 | (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵ | tron | |
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up | |||
2005-10-19 | (svn r3064) Replace some numbers by sprite names | tron | |
2005-10-03 | (svn r3010) Get rid of quite some dubious casts, either by using GB(), ↵ | tron | |
proper types or just removing them | |||
2005-09-17 | (svn r2961) - Fix: [ 1219123 ] Fix for [ 1216203 ] UFO-broken waypoint ↵ | Darkvater | |
(lucaspiller) | |||
2005-08-23 | (svn r2886) Rename the "owner" attribute to "m1", because when it stores an ↵ | tron | |
owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing. | |||
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-20 | (svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵ | tron | |
of GB - should be a bit nicer to read | |||
2005-07-13 | (svn r2560) Fix: various minor code changes. | ludde | |
Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC. | |||
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-07-08 | (svn r2535) Tabs | tron | |
2005-07-01 | (svn r2505) Remove some unnecessary #includes | tron | |
2005-06-25 | (svn r2487) Replace TILE_XY by TileXY/TileDiffXY | tron | |
2005-06-25 | (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to ↵ | tron | |
TileVirtXY | |||
2005-06-24 | (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" | tron | |
2005-06-04 | (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix ↵ | tron | |
some bogus reads of _map_owner | |||
2005-06-02 | (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. | Darkvater | |
2005-02-12 | (svn r1863) Give the effect vehicle type enums more descriptive names and ↵ | tron | |
use the enum as parameter type for CreateEffectVehicle*() -Fix: [1116619] Generate the correct smoke type for diesel trains | |||
2005-01-29 | (svn r1718) Use the enum TileType as parameter/return type for ↵ | tron | |
[GS]etTileType() instead of plain int. This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name. | |||
2005-01-29 | (svn r1716) Prevent zeppelins from accessing non-existent tiles when leaving ↵ | tron | |
the map | |||
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-22 | (svn r1594) Convert all undefined parameter lists to (void) and add the ↵ | tron | |
appropriate warning flags in the Makefile | |||
2005-01-17 | (svn r1549) Clean up some functions: | tron | |
uint tile -> TileIndex tile if () cascade -> switch () | |||
2005-01-16 | (svn r1545) Add TileHeight() which returns the height (not multiplied by 8) | tron | |
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType() | |||
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 | |||
2005-01-07 | (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn ↵ | tron | |
the latter into inline functions names Tile[XY] | |||
2005-01-06 | (svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵ | truelight | |
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *. |