Commit Graph

1758 Commits

Author SHA1 Message Date
matthijs 24943a4759 (svn r2261) - Fix: When crashed vehicles try to find a depot for servicing, openttd asserts.
Crashed vehicles shouldn't find depots anyway...
2005-05-03 19:31:33 +00:00
Darkvater 9b8aa4c101 (svn r2260) - Fix (regression): custom currency input works again ingame 2005-05-03 15:20:08 +00:00
Darkvater ad6b37a423 (svn r2259) - Fix (regression): remove a warning and make the help for variables behave the same as for commands 2005-05-03 11:48:55 +00:00
Darkvater a1e27b1606 (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 2005-05-03 11:14:06 +00:00
matthijs b22ebeda61 (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.
2005-05-03 00:11:30 +00:00
matthijs 6eb094c726 (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.
2005-05-02 23:59:11 +00:00
matthijs 2ab5eee78b (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.
2005-05-02 22:13:20 +00:00
Darkvater d26052c7df (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 2005-05-02 21:56:01 +00:00
matthijs 3b3a2b890f (svn r2253) - Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev) (glx) 2005-05-02 18:53:06 +00:00
Darkvater 5a35c8cc4e (svn r2252) - ReFix: Redo r2251. Just remove the 'default widget handler', WDF_STD_BTN, instead of doing the "workaround" of the previous commit 2005-05-02 18:22:16 +00:00
Darkvater ece616ff22 (svn r2251) - Fix: [ 1193945 ] Clicking on the chat text box causes an assertion failure 2005-05-02 18:08:34 +00:00
Darkvater 4e1fbe54b2 (svn r2250) - Fix (regression): arguments with spaces in them were incorrectly parsed 2005-05-02 17:58:11 +00:00
matthijs 5a69201451 (svn r2249) - Fix: [ 1187703 ] [NPF] Road vehicles cannot find a depot when in a roadstop 2005-05-02 17:52:35 +00:00
Darkvater 63784c5b5a (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) 2005-05-02 17:14:31 +00:00
Darkvater 8f6b3154e5 (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 '\'
2005-05-02 17:05:59 +00:00
Darkvater ab0a6f2e73 (svn r2246) - CodeChange: Station is 'st' not 'station' - random commit of the day 2005-05-02 16:02:24 +00:00
Darkvater 57dbe50597 (svn r2245) - CodeChange: simplify the clamping of values for patch-settings by using clamp() 2005-05-02 16:01:53 +00:00
Darkvater 2cc10f829f (svn r2244) - Fix: 'scrollto' is not debug only..sorry :) 2005-05-02 16:00:49 +00:00
Darkvater d102d0c26d (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"
2005-05-02 15:52:19 +00:00
Darkvater 7a012a3465 (svn r2242) -Fix: [ 1193414 ] Fix for waypoint GUI, scrolling and button-actions (Hackykid) 2005-05-01 20:16:52 +00:00
Darkvater 639b6e780f (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. 2005-05-01 19:37:20 +00:00
miham cf5370eb22 (svn r2240) [Translations] Updated to 2005-05-01 (17 strs / 2 langs) 2005-05-01 18:40:01 +00:00
bjarni 7b68c6cefe (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
2005-05-01 15:13:39 +00:00
Darkvater e32aa54a41 (svn r2238) - [ 1184377 ] Update to OpenTTD readme (orudge) 2005-04-30 11:18:45 +00:00
Darkvater cdb896b790 (svn r2237) - Fix (regression): [ 1192284 ] Bug: Ship refuses to add buoy to its orders (init100) 2005-04-30 10:49:47 +00:00
miham 13f07582b0 (svn r2236) [Translations] Updated to 2005-04-28 (21 strs / 3 langs) 2005-04-28 17:42:13 +00:00
miham d7e6f468e9 (svn r2235) [Translations] Updated finnish translation (Ville Koshinen) 2005-04-27 05:49:03 +00:00
miham 6ff8340619 (svn r2234) [Translations] Updated to 2005-04-26 (149 strs / 12 langs) 2005-04-26 17:56:52 +00:00
tron 0ec5775ded (svn r2233) Bracing, whitespace, indendation 2005-04-25 14:29:58 +00:00
tron 974c19a51c (svn r2232) Remove unused commands 2005-04-25 13:52:59 +00:00
Darkvater 6f9c6effaf (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) 2005-04-25 13:12:48 +00:00
Darkvater 27dbc4ba09 (svn r2230) Oops, revert wrongly committed local console.c. Also add the endian_target.h and endian_host.h to the ignore list 2005-04-24 21:56:46 +00:00
Darkvater a1143a53f0 (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. 2005-04-24 21:44:45 +00:00
Darkvater 11dc0e1777 (svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends. 2005-04-24 19:04:56 +00:00
Darkvater 762b5f7a75 (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) 2005-04-24 18:24:29 +00:00
truelight 5d192d7150 (svn r2226) -Fix: 2 other capital problems for the OSX part of the Makefile 2005-04-24 16:01:36 +00:00
truelight facd3d1af1 (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)
2005-04-24 15:41:01 +00:00
truelight 176c155193 (svn r2224) -Fix: capital-correctness for OSX-dir-names 2005-04-24 12:47:09 +00:00
tron 566df8dc65 (svn r2223) When adding tracks to a railway tile reset the ground to bare land, fix for a glitch in r2131 2005-04-24 07:56:18 +00:00
tron 6ceeedfd3c (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)
2005-04-22 05:41:09 +00:00
Darkvater 591217da4a (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. 2005-04-21 16:20:38 +00:00
tron 403845c9ca (svn r2220) Put two TileIndices into temporary variables to improve readability 2005-04-21 16:13:52 +00:00
miham 1265478a98 (svn r2219) [Translations] Updated to 2005-04-21_2 (40 strs / 5 langs) 2005-04-21 06:56:16 +00:00
tron c731091941 (svn r2218) Indentation 2005-04-21 05:51:47 +00:00
Darkvater c8f07a2dd9 (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. 2005-04-20 22:30:40 +00:00
miham 1b312083fc (svn r2216) [Translations] Updated to 2005-04-21 (67 strs / 6 langs) 2005-04-20 22:24:39 +00:00
Darkvater 29347840c2 (svn r2215) - Feature: Add a temporary mapsize selector to the intro gui. This is sufficient until the real window is designed & coded. 2005-04-20 12:52:02 +00:00
Darkvater cc65bd1702 (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. 2005-04-19 18:30:31 +00:00
celestar 0f08e83553 (svn r2213) -Fix/Feature/Codechange: [ Multistop ] Changed the algo so that it uses NPF. This fixes the problem of RVs attempting to go to unreachable stops [ 1161610 ], and should greatly reduce the wrong stop problem. Cleaned parts of the code 2005-04-18 05:42:59 +00:00
miham 51c56287f0 (svn r2212) [Translations] Updated to 2005-04-17 (139 strs / 3 langs) 2005-04-17 19:44:05 +00:00