|
matthijs
|
r1698:8b26fad26105
|
19 years ago
|
|
|
|
celestar
|
r1530:c89d38477ba0
|
19 years ago
|
|
|
|
bjarni
|
r1520:9fa8c1f5f0f8
|
19 years ago
|
|
(svn r2024) -Fix: [autoreplace] reverted all changes involving v->set_for_replacement as they caused desyncs.
The bad sideeffect of this is that now no vehicle will automatically go to a depot anymore just because it is set to be autoreplaced. We will have to find a better way to solve this problem.
Revisions reverted: 1640, 1707, 1709, 1710, 1712(but not the cheat prevention in this one)
|
|
pasky
|
r1443:9a8f64c33cbe
|
19 years ago
|
|
|
|
Darkvater
|
r1401:9e77058d4bf4
|
19 years ago
|
|
(svn r1905) - Fix: [ 1118810 ] openttd: ship_cmd.c:642 ... Assertion failed. Mapwrap fixed in ship_cmd.c (was implicitely ok before biggermaps). - CodeChange: rename all vehicle controllers to ...Controller for their similar behaviour
|
|
matthijs
|
r1330:62eaa061ec97
|
19 years ago
|
|
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO - Add: asserts to find the v->u.rail.track == 0 problem. - Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation() - Add: GetTileOwner(), IsTileOwner() - Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType(). - Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type. - Codechange: Replaced a few uint by TileIndex.
|
|
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
|
r1282:086fc2f1272e
|
20 years ago
|
|
(svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000 trains in one game (instead of the 240 which was the current value). Default max allowed vehicles per type is changed: Trains: 500 (old 80) Road: 500 (old 80) Ships: 200 (old 40) Aicraft: 300 (old 50) (Tnx to Celestar and Darkvater for checking the patch)
|
|
truelight
|
r1266:eab492937b2b
|
20 years ago
|
|
(svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id (and should be an uint16, not uint8)
|
|
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
|
|
|
|
bjarni
|
r1237:bcfd11754153
|
20 years ago
|
|
(svn r1741) - Fix: added IsVehicleIndex() so it's possible to protect GetVehicle() from reading an invalid vehicle index - Fix: added check for v->type in some commands, which expects v to be a specific type
Checks like this is needed to protect network servers from people, who hack their clients to either cheat or crash the server
NOTE: if I made a mistake here it can make a function unreachable when it should be used. Here is one place to look if something weird happens
|
|
darkvater
|
r1235:e5041bfe7f02
|
20 years ago
|
|
|
|
bjarni
|
r1226:5b2629ab068b
|
20 years ago
|
|
(svn r1730) - Fix: Ships and Aircrafts have to be build in depots owned by _current_player (hacked client protection) now all 4 types of vehicles have to be build in depots. Note: there is a wordaround for AI players since the AI handle aircraft building in a weird way
|
|
tron
|
r1209:5955f8748394
|
20 years ago
|
|
|
|
bjarni
|
r1206:ae6592b77c44
|
20 years ago
|
|
|
|
bjarni
|
r1205:bba7a09210f5
|
20 years ago
|
|
|
|
tron
|
r1197:5c12672cee22
|
20 years ago
|
|
|
|
bjarni
|
r1196:d1b0ca2c5bef
|
20 years ago
|
|
|
|
bjarni
|
r1151:291582d8c443
|
20 years ago
|
|
(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid) fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
|
|
bjarni
|
r1128:d0dd5c69c2e5
|
20 years ago
|
|
(svn r1629) added a counter to tell how many engines you have of each type to the autoreplace vehicle windows and made them show only the vehicles you actually have in the left list. this also fixes some window updates issues when autoreplacing
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
Celestar
|
r1055:d8dd84883c6f
|
20 years ago
|
|
|
|
celestar
|
r1053:58d626056498
|
20 years ago
|
|
(svn r1554) -Fix: [ 1103187 ] Order Check messages are now validated before displayed, so that there are no stray error messages any more. -Feature/Fix: Order Checking is only execute for ONE vehicle in an order-share system
|
|
tron
|
r1035:d35ec5ea5f73
|
20 years ago
|
|
|
|
truelight
|
r1024:c7c4672d839e
|
20 years ago
|
|
(svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic. -Codechange: renamed all 'schedule' stuff to 'order(list)' -Codechange: moved all order-stuff to order_cmd.c / order.h -Codechange: vehicles that share orders are now linked to eachother with next_shared/prev_shared in Vehicle
Developers: please use AssignOrder to assign data to an order. If not, you _WILL_ make the save-routine to assert!
|
|
celestar
|
r1020:1bd74d43db9b
|
20 years ago
|
|
(svn r1521) -Fix: Ship Vehicle Lists are now redrawn correctly -Codechange: added some const to last commit -Codechange: Ship and Aircraft lists are now update on order change, not on new day
|
|
tron
|
r926:fcf36609eb94
|
20 years ago
|
|
|
|
truelight
|
r919:57ef81f1ba8e
|
20 years ago
|
|
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns 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 *.
|
|
tron
|
r915:dabba47e3ed1
|
20 years ago
|
|
|
|
tron
|
r909:898755bd4512
|
20 years ago
|
|
|
|
tron
|
r900:6c526ed4f41b
|
20 years ago
|
|
(svn r1386) Move TileIndexDiff to map.h Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
|
|
bjarni
|
r842:96908cec3367
|
20 years ago
|
|
(svn r1323) Adding autoreplace feature This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
|
|
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!!
|
|
truelight
|
r812:2f2818d6d63d
|
20 years ago
|
|
(svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch Note: this is the first commit that breaks compatibility with 0.3.5! -Fix: Bufferoverflow with autorenew_money. It is now a 32-bit integer.
|
|
darkvater
|
r755:02ea8c27f87d
|
20 years ago
|
|
|
|
tron
|
r679:3a7b08cc8504
|
20 years ago
|
|
|
|
tron
|
r593:4ed1c5a33f13
|
20 years ago
|
|
(svn r1015) MFM r789 Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
|
|
tron
|
r588:c0748f0d2104
|
20 years ago
|
|
(svn r1009) -Feature: per-station vehicle lists This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables.
|
|
bjarni
|
r578:d7914d23d3b7
|
20 years ago
|
|
|
|
tron
|
r555:cefc6ad212ed
|
20 years ago
|
|
(svn r955) Replace uint16 for orders with struct Order This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read. This changes preserves binary compatibility wrt savegames.
|
|
tron
|
r541:062eeec7f0a4
|
20 years ago
|
|
(svn r925) Use sound enums Also play the correct sound when a toyland road vehicle breaks down
|
|
tron
|
r538:c4b9f109ad6c
|
20 years ago
|
|
|
|
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
|
r445:8bbc3f73289f
|
20 years ago
|
|
|
|
tron
|
r410:6458c1253cb1
|
20 years ago
|
|
(svn r607) -Patch: [ 985102 ] static cleanup Thanks to lvoge
|
|
darkvater
|
r358:2c5052ff031d
|
20 years ago
|
|
|
|
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
|
|
dominik
|
r297:15a7439bcc10
|
20 years ago
|
|
|
|
truelight
|
r193:6aa65dc5a4b4
|
20 years ago
|
|
|
|
darkvater
|
r164:32c72e637930
|
20 years ago
|
|
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
|
|
truelight
|
r159:dfa73da8fbde
|
20 years ago
|
|
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs) -Fix: some minor fixes around GetTileTrackStatus (blathijs)
|
|
darkvater
|
r156:dd00481b3251
|
20 years ago
|
|
|
|
truelight
|
r76:1049286a4b28
|
20 years ago
|
|
(svn r77) -Fix: [1010788] AI service interval bug (tnx truesatan) -Add: AI overrides service interval to 180 days -Fix: AI hanged when all vehicles were disabled in Patch menu
|
|
dominik
|
r19:6da4a71c334c
|
20 years ago
|
|
|
|
dominik
|
r11:c7045bf4c614
|
20 years ago
|
|
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|