Commit Graph

1760 Commits (dc4e959b48887f4b3e1105888e1e254119996c86)
 

Author SHA1 Message Date
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
tron 4888c2401e (svn r2233) Bracing, whitespace, indendation 19 years ago
tron 178d334a37 (svn r2232) Remove unused commands 19 years ago
Darkvater 7bffffe396 (svn r2231) - Fix: max_join_time pointing to _network_max_join_time is an uint16, so it should have type SDT_UINT16; fix for revision 2106 (thanks peter1138) 19 years ago
Darkvater 8c980af098 (svn r2230) Oops, revert wrongly committed local console.c. Also add the endian_target.h and endian_host.h to the ignore list 19 years ago
Darkvater e9f8449d55 (svn r2229) - Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one. This results in some segfaults for certain sprites. Fixed it by added a dummy grf file consisting ofr 6 sprites and loaded when using DOS gfx at the appropiate place. 19 years ago
Darkvater adaf7832d4 (svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends. 19 years ago
Darkvater 9e1520b268 (svn r2227) - Fix (regression): [ 1188408 ] Fix news settings load check. When updating old news-message-types to new ones, certain combinations of new were wrongly recognized as old (glx) 19 years ago
truelight e58773e6ce (svn r2226) -Fix: 2 other capital problems for the OSX part of the Makefile 19 years ago
truelight 27f80e09e3 (svn r2225) -Fix: split the endian-detection to target/host. Now cross-compiling
on i386-linux for MacOSX should also work for the language-files (strgen issues)
19 years ago
truelight b195b77906 (svn r2224) -Fix: capital-correctness for OSX-dir-names 19 years ago
tron 738ea43ce1 (svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131 19 years ago
tron cadc38eb49 (svn r2222) Check the parameters of Cmd{Insert,Delete,Modify,Skip}Order() and CmdRestoreOrderIndex():
- Check if the vehicle exists
- Check if the vehicle belongs to the correct player
- Check if the new order is valid (type, destination, flags) (CmdInsertOrder)
19 years ago
Darkvater 9bda9327e1 (svn r2221) - Fix: "Map size" is two words. Also draw the string right-aligned in the intro gui so it doesn't matter how long it is in other languages. 19 years ago
tron 6572b48cc5 (svn r2220) Put two TileIndices into temporary variables to improve readability 19 years ago
miham feda65a88b (svn r2219) [Translations] Updated to 2005-04-21_2 (40 strs / 5 langs) 19 years ago
tron 156aabea2d (svn r2218) Indentation 19 years ago
Darkvater b12c73b050 (svn r2217) - Fix: [ 1184201 ] AI orders its vehicles to a competitor's truck stop. Added a CmdFailed() check to all command returns of the AI instead of the simple == / != CMD_ERROR check. This should fix the problem. 19 years ago
miham 6e4f1b5a4b (svn r2216) [Translations] Updated to 2005-04-21 (67 strs / 6 langs) 19 years ago
Darkvater 53135e91ba (svn r2215) - Feature: Add a temporary mapsize selector to the intro gui. This is sufficient until the real window is designed & coded. 19 years ago
Darkvater dc415a9624 (svn r2214) - Fix: Dragging the desert tool over half-desert turns it into full-desert; dragging the tool while pressing ctrl, will remove the desert area. 19 years ago