Age | Commit message (Collapse) | Author |
|
add/remove tool removes industries. Fixed a bit too agressive desert generator. It still does remove the industry (sand's a bitch on machinery), but at least it does it cleanly :)
|
|
assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
|
|
|
|
trains will now also look behind it if there is no depot in front. If so, the train reverses immediately. This also work anywhere, not just at stations.
- Add: [NPF] Reversing inside of depots now has a penalty. It also applies to trains only, other vehicles shouldn't bother reversing.
- Fix: [NPF] When checking whether to reverse a train, the trackdir of the first loc was used instead of the last vehicle as a starting node for pathfindig.
This might have caused some trains not reversing when they should have (or vice versa). Typo introduced when converting to GetVehicleTrackdir() in r2256.
- CodeChange: [NPF] Removed duplicate code by letting NPFRouteTjoStationOrTile() call NPFRouteToStationOrTileTwoWay().
- Add: [NPF] NPFRouteToDepotBreadthFirstTwoWay() to find a depot while also looking backwards.
- Add: It is now possibly to specify a path cost for aystar starting nodes.
|
|
current mapsize
|
|
there also add proper comments for the functions and fix up CmdFailed()
|
|
to the correct player
|
|
Thing tm. Thanks tron
|
|
only available in debug mode
|
|
|
|
for engine_type
|
|
have crashed. (peter1138)
|
|
|
|
CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number
|
|
about it. When selling dual-headed trains, also sell the rear end; if the now-first wagon is an engine, make it a train. When selling the whole train, try to leave dual-headed setups intact
|
|
with INVALID_VEHICLE, vehicle index is of type VehicleID
|
|
possible inputs of resolutions to the maximum availble
|
|
since that interfered with the saveload code.
|
|
Win98/95, for the few sadistic geeks that really want to do this (thanks for testing Hackykid). Also fix up another glitch in console output
|
|
failed console-cmds. Make command 'clients' only available in network mode
|
|
current order doesn't take effect immediately. (glx)
|
|
everything after that is cut off. Fix it by replacing nothing with ' '. Thanks for noticing peter1138
|
|
GetVehicleTrackdir now tries to get a valid trackdir as much as possibly, by assuming that a vehicle is facing outwards in a depot or road station, for example.
- Codechange: [Multistop] Multistop now also tries to find a slot for road vehicles that are in stations, since the pathfinder now properly handles that.
|
|
openttd asserts.
Crashed vehicles shouldn't find depots anyway...
|
|
|
|
variables behave the same as for commands
|
|
a bit too aggressive with its _assume(0), and it did not even belong there
|
|
for street tiles, corrupting them.
Some info got moved around in r1768 for street tiles, but NPF did not get updated.
|
|
- Add: GetVehicleTrackdir() helper function.
- Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed.
- Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte".
- Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
|
|
Buoys will now try to get within 3 tiles of a buoy instead of a the actual buoy tile. This gets ships to got past buoys in a realistic (IMO) way instead of barging right through them.
- Fix: [NPF] Trains get curves penalties sometimes even when the track is straight.
- Add: [NPF] Ships get a penalty for going over buoys now, so they will try to go around.
- Add: [NPF] Ships get a penalty for curves too, yay for straight lines.
- Add: TrackdirToTrack(), TrackToTrackdir(), IsDiagonalTrack() and IsDiagonalTrackdir() helper functions.
- Add: IsBuoy() and IsBuoyTile() helper functions.
- Codechange: Rearranged part of the control flow of ShipController(), removing a goto.
|
|
savegames and does not depend on the whim of the currently open saveload dialog
|
|
(mono, maglev) (glx)
|
|
WDF_STD_BTN, instead of doing the "workaround" of the previous commit
|
|
assertion failure
|
|
incorrectly parsed
|
|
in a roadstop
|
|
dedicated server (only reset _thd.pos, not the whole structure; as done in revision 2241 to fix another crash)
|
|
character(s)).
- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
|
|
the day
|
|
by using clamp()
|
|
|
|
about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'.
- Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
|
|
button-actions (Hackykid)
|
|
highlighting. Without shutting down OpenTTD some possibly 'invalid' data in TileHighLightData (_thd) is left behind; reset it.
|
|
|
|
engine into a singleheaded engine is no longer a potiontial crash
It do have one side effect through. Now no engines are added/removed from the train anymore, so it produces "half dualheaded engines"
This will be fixed when autoreplace will get a major overhaul at a later date
|
|
|
|
its orders (init100)
|
|
|
|
|