|
truelight
|
r2760:b021dc87dfb7
|
19 years ago
|
|
|
|
peter1138
|
r2737:f9a4280ebfa8
|
19 years ago
|
|
|
|
truelight
|
r2709:60cdde9ed2af
|
19 years ago
|
|
|
|
truelight
|
r2690:0922bb7912f6
|
19 years ago
|
|
(svn r3232) -Add: implemented the event-system for AIs -Add: added several hooks (event-callbacks) for road-related-stuff
|
|
tron
|
r2639:e298192a7c03
|
19 years ago
|
|
(svn r3181) -Bracing -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
|
|
tron
|
r2549:1549d4b2ba28
|
19 years ago
|
|
(svn r3078) Some more stuff, which piled up: - const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
|
|
tron
|
r2548:9570bbbdacab
|
19 years ago
|
|
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
|
|
tron
|
r2544:8113f47d11ba
|
19 years ago
|
|
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID 0/-1 -> INVALID_ENGINE 0x10 -> OWNER_NONE
|
|
tron
|
r2537:eb2232d81b9c
|
19 years ago
|
|
|
|
tron
|
r2535:5649d4ab371b
|
19 years ago
|
|
|
|
tron
|
r2511:38fead3e8cf3
|
19 years ago
|
|
|
|
tron
|
r2502:2c4fc1650942
|
19 years ago
|
|
|
|
tron
|
r2493:a844eec5cb6b
|
19 years ago
|
|
|
|
peter1138
|
r2471:bee74ab7f6e9
|
19 years ago
|
|
|
|
tron
|
r2469:0895d2eace8d
|
19 years ago
|
|
|
|
Darkvater
|
r2436:963efe8b84cc
|
19 years ago
|
|
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
|
|
Darkvater
|
r2425:5e48f18c7157
|
19 years ago
|
|
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone - Add IsLocalPlayer() which substitutes _local_player == _current_player
|
|
truelight
|
r2422:a6364887ab45
|
19 years ago
|
|
(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of special abilities you really don't want to know about (free bridges, etc..) I removed this flag some revisions ago, but the Aircraft part depends on it, so I re-enabled it again..
|
|
celestar
|
r2187:60cea7c48bf4
|
19 years ago
|
|
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
celestar
|
r2148:f279899fdbd0
|
19 years ago
|
|
|
|
tron
|
r2140:efb49af98a17
|
19 years ago
|
|
|
|
tron
|
r2133:180eccd2c589
|
19 years ago
|
|
|
|
tron
|
r2124:b07f120985c5
|
19 years ago
|
|
|
|
celestar
|
r2085:757cdc338c24
|
19 years ago
|
|
(svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is steep (i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance
|
|
Darkvater
|
r2074:7ea07e16293b
|
19 years ago
|
|
|
|
tron
|
r2049:7e26d55f0f4c
|
19 years ago
|
|
|
|
hackykid
|
r2008:5e435ad4c8e4
|
19 years ago
|
|
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
|
|
tron
|
r1986:40fe0be5bb1e
|
19 years ago
|
|
|
|
tron
|
r1981:addba4bccc89
|
19 years ago
|
|
|
|
tron
|
r1980:3622a0cd06c2
|
19 years ago
|
|
|
|
tron
|
r1979:2ece0cb73ecf
|
19 years ago
|
|
|
|
tron
|
r1977:1f8b99c96041
|
19 years ago
|
|
|
|
matthijs
|
r1942:ea8e39498c72
|
19 years ago
|
|
(svn r2448) General cleanup of rail related code, more to follow. * Add: rail.[ch] for rail-related enums and wrapper functions. * Codechange: Removed dozens of magic numbers with below enums. * Codechange: Rewrote CheckTrackCombination(). * Add: TILE_SIZE, TILE_PIXELS and TILE_HEIGHT constants. * Add: enums RailTileType, RailTileSubtype, SignalType to mask against the map arrays. * Add: enums Track, TrackBits, Trackdir, TrackdirBits for railway track data. (Note that the old RAIL_BIT constants are replaced by TRACK_BIT ones). * Add: enums Direction and DiagDirection * Codechange: Moved a bunch of track(dir) related lookup arrays from npf.[ch] to rail.[ch]. * Codechange: move RailType enum from tile.h to rail.h. * Add: Wrapper functions for masking signal status in the map arrays: SignalAlongTrackdir, SignalAgainstTrackdir and SignalOnTrack. * Add: Wrapper functions to access rail tiles, using above enums * Add: Wrapper functions to modify tracks, trackdirs, directions, etc. * Add: Wrapper functions for all lookup arrays in rail.[ch] (Arrays are still used in parts of the code) * Codechange: Renamed some variables and arguments to better represent what they contain (railbit -> track, bits -> trackdirbits, etc.). * Codechange: Don't use FindLandscapeHeight() in CmdRemoveSingleRail(), since it returns way too much info. Use GetTileSlope() instead. * Codechange: [NPF] Removed some unused globals and code from npf.c.
|
|
Darkvater
|
r1927:cc0ee71e209d
|
19 years ago
|
|
|
|
tron
|
r1902:cfc758cf1057
|
19 years ago
|
|
|
|
tron
|
r1901:e806afa50723
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
Darkvater
|
r1785:adfb25066e2c
|
20 years ago
|
|
|
|
Darkvater
|
r1784:15b805156766
|
20 years ago
|
|
(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115). - CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking. - CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count) - CodeChange: added IsTownIndex() in following of IsStationIndex(), etc. - Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now)
|
|
Darkvater
|
r1638:2a22d6e3923f
|
20 years ago
|
|
|
|
tron
|
r1398:4ac937a4c626
|
20 years ago
|
|
|
|
tron
|
r1359:705db2bcef93
|
20 years ago
|
|
(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*() -Fix: [1116619] Generate the correct smoke type for diesel trains
|
|
truelight
|
r1327:a4e82044b47e
|
20 years ago
|
|
(svn r1831) -Fix: Scenario Editor now handles human-made roads better (try to build a city layout before placing the city, finally that works very nice)
|
|
truelight
|
r1313:da473558c9d7
|
20 years ago
|
|
(svn r1817) -Codechange: Moved depot-functions to depot.c -Codechange: Added wrappers around depot-access (GetDepot no exists) -Codechange: Made depot-functions a bit more logic (no longer GetDepotByTile crashes your game when you request it on a non-depot tile) -Add: made depots dynamic (yes, 64k depots are possible now)
|
|
truelight
|
r1281:0c84db999f63
|
20 years ago
|
|
(svn r1785) -Fix: space-correctness in road_cmd.c, and one wrong line from last commit (tnx to DarkVater)
|
|
truelight
|
r1280:aed90f34926a
|
20 years ago
|
|
(svn r1784) -Fix: removed ClosestTownFromTile where possible, or replaced it with _map2-data if possible (Celestar / TrueLight)
|
|
celestar
|
r1264:32e75a054596
|
20 years ago
|
|
(svn r1768) -Codechange: Store town index in _map2 of town tiles Moved house type from _map2 to _map3_hi for MP_HOUSE Moved foundation and roadworks from _map2 to _map3 for MP_STREET This increases game speed by a factor of around 15(!) if many cities are around. Converting an old game is done automagically, but can take a while
|
|
matthijs
|
r1247:d01094dbcdcc
|
20 years ago
|
|
(svn r1751) - Feature: New PathFinder (NPF). - Supports trains, road vehicles and ships. - Uses A* pathfinding (same codebase as the new ai). - Currently unlimited search depth, so might perform badly on large maps/networks (especially ships). - Will always find a route if there is one. - Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values). - With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again. - Feature: Disabling 90 degree turns for trains and ships. - Requires NPF to be enabled. - Ships and trains can no longer make weird 90 degree turns on tile borders. - Codechange: Removed table/directions.h. - table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location? - Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault. - Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64. - Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED. - Codechange: Moved TileAddWrap() to map.[ch] - Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). - Codechange: Moved IsTrainStationTile() to station.h - Add: IsRoadStationTile() and GetRoadStationDir().
|
|
tron
|
r1245:eb9b943bd917
|
20 years ago
|
|
|
|
tron
|
r1214:2ed99b1b4b97
|
20 years ago
|
|
(svn r1718) Use the enum TileType as parameter/return type for [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.
|
|
tron
|
r1209:5955f8748394
|
20 years ago
|
|
|
|
tron
|
r1095:c4ca8dd7cd3e
|
20 years ago
|
|
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
tron
|
r1059:bbcabb62c19c
|
20 years ago
|
|
(svn r1560) Introduce SetTileType() and SetTileHeight() Replace direct references to _map_type_and_height with these
|
|
tron
|
r1041:861c81f15ca0
|
20 years ago
|
|
|
|
tron
|
r1035:d35ec5ea5f73
|
20 years ago
|
|
|
|
celestar
|
r1005:0796061bc2a6
|
20 years ago
|
|
|
|
tron
|
r959:bb0ac3e56084
|
20 years ago
|
|
|
|
tron
|
r926:fcf36609eb94
|
20 years ago
|
|
|
|
darkvater
|
r889:ed9a6e2f24bb
|
20 years ago
|
|
|
|
truelight
|
r817:5620a6b29ae5
|
20 years ago
|
|
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!!
|
|
tron
|
r679:3a7b08cc8504
|
20 years ago
|
|
|
|
tron
|
r541:062eeec7f0a4
|
20 years ago
|
|
(svn r925) Use sound enums Also play the correct sound when a toyland road vehicle breaks down
|
|
tron
|
r534:46e9db8de483
|
20 years ago
|
|
(svn r901) Small step in the process to clean up the DPARAM mess: - reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
|
|
tron
|
r507:b1b0a0a3c313
|
20 years ago
|
|
(svn r815) Include strings.h only in the files which need it. This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
|
|
tron
|
r497:beb1bd29f06e
|
20 years ago
|
|
(svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent with its own name and all other DO_* flags. Now it is active-true.
|
|
tron
|
r473:f7d76ddceb3a
|
20 years ago
|
|
(svn r724) Remove restriction that a tile can only accept 3 cargo types. This especially enables houses to accept passengers, mail, goods AND food. Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them. Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided. This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon.
|
|
tron
|
r410:6458c1253cb1
|
20 years ago
|
|
(svn r607) -Patch: [ 985102 ] static cleanup Thanks to lvoge
|
|
tron
|
r337:998f55d0b04c
|
20 years ago
|
|
(svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk This includes 2 fixes -Fix: [1048596] Monorail and Maglev sounds are swapped (r511) -Add special case to load the jackhammer sound (r478) The rest are cleanups und enumeration to make merging possible/easier
|
|
darkvater
|
r241:9d9818d4107d
|
20 years ago
|
|
(svn r242) -Fix: Pathfinding bug for road vehicles introduced in r160 fixed (blathijs) -Fix: Pathfinding under bridges bug for ships introduced in r160 fixed (Darkvater)
|
|
darkvater
|
r222:4409829eb08f
|
20 years ago
|
|
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
|
|
darkvater
|
r204:bec21a5bb1b7
|
20 years ago
|
|
|
|
truelight
|
r201:9dbb80b71da5
|
20 years ago
|
|
(svn r202) -Codechange: I missed some files with trailing spaces.. this should be all ;)
|
|
truelight
|
r159:dfa73da8fbde
|
20 years ago
|
|
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs) -Fix: some minor fixes around GetTileTrackStatus (blathijs)
|
|
darkvater
|
r149:2fc05d1c9173
|
20 years ago
|
|
(svn r150) -Fix: [1010833] Turning on the magic bulldozer removes oil rigs -Fix: [993493] Buildings on water -Feature: Water floods everything, including vehicles.
|
|
truelight
|
r84:ffa541707cbb
|
20 years ago
|
|
(svn r85) -Add: initial commit of new AI (enable in Patch menu) -Add: generalised A* Algorithm -Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
|
|
darkvater
|
r72:373a82e11488
|
20 years ago
|
|
|
|
dominik
|
r39:c8e54423ac24
|
20 years ago
|
|
|
|
darkvater
|
r22:d13b1ad89539
|
20 years ago
|
|
|
|
dominik
|
r13:dd4e824e4f24
|
20 years ago
|
|
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|