Commit Graph

1980 Commits (80760b4f69bc4f552ff22593d19365662e62caf3)
 

Author SHA1 Message Date
Darkvater d0139bb48f (svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P 19 years ago
miham de0c601db3 (svn r2282) [Translations] Updated to 2005-05-08 (58 strs / 3 langs) 19 years ago
matthijs 3081316c69 (svn r2281) - Fix: [ 1115204 ] [NPF] When pressing the goto depot button, 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.
19 years ago
Darkvater 047f6a096c (svn r2280) - Fix: Check if the passed tile to DoCommand is within the current mapsize 19 years ago
Darkvater 419af5cece (svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed() 19 years ago
tron af42781042 (svn r2278) When renaming a station, check if the station exists and belongs to the correct player 19 years ago
Darkvater 1a9c87bfe4 (svn r2277) - Codechange: change sscanf() into stroul() Which Does The Right Thing tm. Thanks tron 19 years ago
Darkvater 5e4080b547 (svn r2276) - CodeChange: remove DebugProc() and make the ALT+0...4 codes only available in debug mode 19 years ago
Darkvater 2c01a24474 (svn r2275) - Fix: [ 1196662 ] scrollto doesn't accept hexadecimal numbers 19 years ago
Darkvater 132f8673db (svn r2274) - Codechange: some comments, parentheses and EngineID typedef for engine_type 19 years ago
celestar 3e0028c0df (svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138) 19 years ago
tron 3f83bba96e (svn r2272) Remove unused attribute from struct Station 19 years ago
tron 52c89cf477 (svn r2271) CMD_SET_PLAYER_FACE, CMD_SET_PLAYER_COLOR, CMD_INCREASE_LOAN, CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number 19 years ago
Darkvater b0f58568f0 (svn r2270) - Fix/Codechange: fix up selling rail vehicles. Try to be smart 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 19 years ago
Darkvater 34066edd68 (svn r2269) - CodeChange: no else after return; exchange some magic 0xffff with INVALID_VEHICLE, vehicle index is of type VehicleID 19 years ago
Darkvater 674eaeeb59 (svn r2268) - Fix [ 1195595 ] high resolutions don't work. Clamp all possible inputs of resolutions to the maximum availble 19 years ago
matthijs fbed2d4bbb (svn r2267) - Codechange: Reverted the typedeffing of VehicleType (r2256), since that interfered with the saveload code. 19 years ago
Darkvater a29a5b14a0 (svn r2266) - Feature: it is now possible to start a dedicated server on 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 19 years ago
Darkvater f1631ebed7 (svn r2265) - Fix: some more useful help messages and consistent errors for failed console-cmds. Make command 'clients' only available in network mode 19 years ago
matthijs 59291dc63f (svn r2264) - Fix: [ 1060686 1187655 ] Changing the full-load flag on the current order doesn't take effect immediately. (glx) 19 years ago
Darkvater dc4e959b48 (svn r2263) - Fix: If the seperator string is empty for custom currencies, everything after that is cut off. Fix it by replacing nothing with ' '. Thanks for noticing peter1138 19 years ago
matthijs f04ba0b679 (svn r2262) - Fix: Assertion when vehicle in a depot wants to do pathfinding.
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.
19 years ago
matthijs f7eb57c0fc (svn r2261) - Fix: When crashed vehicles try to find a depot for servicing, openttd asserts.
Crashed vehicles shouldn't find depots anyway...
19 years ago
Darkvater d082989dc9 (svn r2260) - Fix (regression): custom currency input works again ingame 19 years ago
Darkvater 6e342942a9 (svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands 19 years ago
Darkvater 22c76e14fd (svn r2258) - Fix (regression): game crashes on resizing window. Windows is a bit too aggressive with its _assume(0), and it did not even belong there 19 years ago
matthijs 64d7dbe4ca (svn r2257) - Fix: [NPF] NPF debug markings modify _map2 instead of _map3_hi for street tiles, corrupting them.
Some info got moved around in r1768 for street tiles, but NPF did not get updated.
19 years ago
matthijs f8302a137a (svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)
- 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.
19 years ago
matthijs ba733c005d (svn r2255) - Fix: [ 9680363 ] [NPF] Broken buoy handling for ships
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.
19 years ago
Darkvater a7b661d47b (svn r2254) - Fix: using 'ls' or 'dir' in the console always shows loadable savegames and does not depend on the whim of the currently open saveload dialog 19 years ago
matthijs a2d7015248 (svn r2253) - Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev) (glx) 19 years ago
Darkvater 6e9ef3e30a (svn r2252) - ReFix: Redo r2251. Just remove the 'default widget handler', WDF_STD_BTN, instead of doing the "workaround" of the previous commit 19 years ago
Darkvater 5ee09dd208 (svn r2251) - Fix: [ 1193945 ] Clicking on the chat text box causes an assertion failure 19 years ago
Darkvater df46ae6e6a (svn r2250) - Fix (regression): arguments with spaces in them were incorrectly parsed 19 years ago
matthijs 827808f906 (svn r2249) - Fix: [ 1187703 ] [NPF] Road vehicles cannot find a depot when in a roadstop 19 years ago
Darkvater 17d1d4a750 (svn r2248) - Fix (regression): fix crashing of game when joining a dedicated server (only reset _thd.pos, not the whole structure; as done in revision 2241 to fix another crash) 19 years ago
Darkvater 1fb4a182e7 (svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)).
- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
19 years ago
Darkvater bc7f5e5099 (svn r2246) - CodeChange: Station is 'st' not 'station' - random commit of the day 19 years ago
Darkvater 6e56a30c07 (svn r2245) - CodeChange: simplify the clamping of values for patch-settings by using clamp() 19 years ago
Darkvater 07d5d86c1a (svn r2244) - Fix: 'scrollto' is not debug only..sorry :) 19 years ago
Darkvater 22a375ba73 (svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help 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"
19 years ago
Darkvater b299f5aa5a (svn r2242) -Fix: [ 1193414 ] Fix for waypoint GUI, scrolling and button-actions (Hackykid) 19 years ago
Darkvater a2a1e0a114 (svn r2241) - Fix: [ 1190625 ] Changing mapsize crashes game with highlighting. Without shutting down OpenTTD some possibly 'invalid' data in TileHighLightData (_thd) is left behind; reset it. 19 years ago
miham fa541b8656 (svn r2240) [Translations] Updated to 2005-05-01 (17 strs / 2 langs) 19 years ago
bjarni 7669c4d0c2 (svn r2239) -Fix [autoreplace]: [ 1185653 ] autoreplacing a dualheaded 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
19 years ago
Darkvater 1312fe4468 (svn r2238) - [ 1184377 ] Update to OpenTTD readme (orudge) 19 years ago
Darkvater 6f1fc10e73 (svn r2237) - Fix (regression): [ 1192284 ] Bug: Ship refuses to add buoy to its orders (init100) 19 years ago
miham e469f69bc6 (svn r2236) [Translations] Updated to 2005-04-28 (21 strs / 3 langs) 19 years ago
miham 65353d05f6 (svn r2235) [Translations] Updated finnish translation (Ville Koshinen) 19 years ago
miham c35baf477f (svn r2234) [Translations] Updated to 2005-04-26 (149 strs / 12 langs) 19 years ago