Darkvater
83957ac5ad
(svn r3641) - Rename MusicFilesettings 'btn_down' to more sensible 'playing'
2006-02-20 23:40:53 +00:00
Darkvater
a2c9df81b9
(svn r3640) - Remove win32-only variables from variables.h and put them into win32_v.c. Also ifdef the win32 specific configuration file settings.
2006-02-20 23:01:58 +00:00
Darkvater
317bd06971
(svn r3622) - Partly revert r3214. The patch setting max_num_autosaves stays to help control PDA-troubles which the commit was intended for. Didn't revert makefile-config version since it would cause trouble. But Bjarni promised to rewrite it :)
2006-02-20 17:54:25 +00:00
Darkvater
cb77d1447e
(svn r3621) - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame.
2006-02-20 17:49:26 +00:00
truelight
3d3ba2bb34
(svn r3601) -Codechange: special for Tron, and he was absolutely correct in thisone: added a comment for last commit
2006-02-13 22:11:03 +00:00
truelight
576d32b210
(svn r3600) -Fix: suppress error on 64bit targets
2006-02-13 22:06:02 +00:00
truelight
c2c00a7ffa
(svn r3567) -Fix: for once and for all, use 'unsigned long' if you want to cast something
...
from int-like to void *... we fixed that not too long ago, and the code below
this changed line clearly tells you do to that :p
2006-02-06 22:30:43 +00:00
Darkvater
6e1be04923
(svn r3550) - [Patches]: fix GCC warning, sorry
2006-02-04 23:09:33 +00:00
Darkvater
949340ed6b
(svn r3548) - [Patches]: rework two loops in make_oneofmany() and make_manyofmany()
2006-02-04 22:52:30 +00:00
Darkvater
3156a052d5
(svn r3547) - [Patches]: do some general cleanup, commentarization before starting actual work. This patch contains no functional changes (I hope). It might break GPMI-builds though when trying to join a trunk/ network game or vice versa. To solve, you can change the order of the first 8 enums in SettingDescType. I think that'll work.
2006-02-04 22:48:57 +00:00
Darkvater
a88ed0583b
(svn r3534) - Codechange: remove unused savedump patch-settings.
2006-02-04 15:28:30 +00:00
peter1138
49e51cf27f
(svn r3512) Yet more whitespace fixes (mostly by Rubidium)
2006-02-01 09:08:25 +00:00
tron
1c3e8630fe
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36:15 +00:00
truelight
c249b70622
(svn r3479) -Fix: fixed warnings on 64bit platforms (anyway, most 64bit platforms)
...
(tnx to qball and DarkVater for testing)
2006-01-29 20:32:30 +00:00
Darkvater
21684a66fe
(svn r3475) - Fix: you couldn't remove an item from a list-type of config ingame from the configuration file. Whatever you did, upon restart of OpenTTD those items were still there. To fix this we initialize the first item to NULL in SaveList as it is rebuilt anyways fully.
2006-01-29 19:50:01 +00:00
Darkvater
4014e36aec
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
...
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29 18:57:26 +00:00
tron
d5aa95b87e
(svn r3313) Remove GPMI related changes from trunk
...
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
2005-12-18 12:10:46 +00:00
truelight
29a0f76ac9
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
...
Darkvater, so we can, in the future, save patch options in savegames
without any problems.
2005-11-26 16:18:15 +00:00
truelight
d9e13cef71
(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)
2005-11-22 22:32:42 +00:00
truelight
af6fe3949b
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
...
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!
2005-11-21 14:28:31 +00:00
tron
99a918aaac
(svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx)
2005-11-19 12:37:28 +00:00
bjarni
8b4d7f97da
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
...
max_autosave_num in the config files sets the number of autosaves to keep (default 16)
MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given
this behaviour can still be overwritten by keep_all_autosave (openttd.config setting)
Note: this is a requested behaviour for PDA ports, since they got limited storage space
2005-11-17 19:43:37 +00:00
peter1138
7ba8da9dc7
(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
2005-11-09 07:25:55 +00:00
peter1138
5dcb1e34fd
(svn r2982) Newgrf: Added patch option for wagon speed limits. This is enabled by default.
2005-09-24 13:56:39 +00:00
tron
96fa84358d
(svn r2976) -Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables
2005-09-23 14:21:39 +00:00
tron
c20b5883bd
(svn r2924) Introduce the ALIGN() macro which aligns values to multiples of a power of 2, for exact semantics see the commment in macros.h
2005-09-08 12:48:26 +00:00
tron
689dc10b13
(svn r2833) Remove saving of sprite cache data:
...
the benefits are questionable, it's error prone, undocumented and hasn't been widely used for ages, if ever
2005-08-07 17:52:41 +00:00
tron
78524dd216
(svn r2831) Fix some potential and real buffer overflows
2005-08-07 14:18:17 +00:00
tron
3f162fc49a
(svn r2830) Move CheckSwitchToEuro() to currency.[ch] and hide the truth about the custom currency behind a #define
2005-08-07 12:41:57 +00:00
tron
b62887b973
(svn r2815) Store the currency information in one central place instead of scattering it in several unrelated files
2005-08-06 14:59:54 +00:00
tron
6bdedb51a6
(svn r2706) Fix !WITH_NETWORK build
2005-07-25 07:28:32 +00:00
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
54cbd01825
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
tron
b0779b4b65
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
2005-07-21 18:44:27 +00:00
ludde
08725cd6df
(svn r2635) Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra.
...
- Benchmark shows that NTP is now around 10x faster than NPF.
- Made IsTunnelTile macro to determine if a tile is a tunnel.
- Added some useful debugging functions for making tiles red / getting accurate timestamps.
- Remove old depot finding algorithm.
- Disable warning for signed/unsigned comparisons.
2005-07-19 11:42:40 +00:00
tron
87be1312d2
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
2005-07-19 06:54:13 +00:00
tron
bce6f5c0a5
(svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
2005-07-19 06:47:07 +00:00
ludde
7bcce65053
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder.
...
- Penalties for red signals and for slopes.
- Increased the search depth to work better with large train networks.
2005-07-12 20:28:19 +00:00
hackykid
ab9c6f126d
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal.
...
- Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings.
- Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
2005-07-04 14:58:55 +00:00
matthijs
e675794812
(svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail().
...
- Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails.
- Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
2005-07-03 13:02:54 +00:00
matthijs
65de40f547
(svn r2447) * Add: [NPF] Penalty for road vehicles making turns.
2005-06-16 17:53:40 +00:00
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
2005-06-02 19:30:21 +00:00
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.
2005-05-07 22:00:36 +00:00
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.
2005-05-02 22:13:20 +00:00
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)
2005-04-25 13:12:48 +00:00
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)
2005-04-24 18:24:29 +00:00
matthijs
c6f40b4696
(svn r2204) - Add: [NPF] NPF now has a maximum number of nodes it will search. The default value is 5000 for now, which is an educated guess. Probably needs some finetuning. Hopefully this "feature" can be removed later on, when more sophisticated means of limiting the pathfinder have been implemented. This should make ships and larger networks playable for now, though.
2005-04-15 15:28:01 +00:00
Darkvater
e25dfa6e7e
(svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930].
...
- I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type.
- Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types.
2005-04-13 23:03:31 +00:00
matthijs
cee1a5d1b2
(svn r2147) - Add: [NPF] Give red presignal exit signals a different (higher) penalty, to discourage trains from waiting at presignal exits.
2005-04-04 17:53:39 +00:00
truelight
40a9b91b37
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more stable
...
-Add: added 'pause_on_join' and 'max_join_time' for MP games, where you
can auto-pause the game when a client wants to join the game. This to
avoid connection losses because of big maps (200+ trains). (with tnx to
#openttdcoop for the ideas and testing)
2005-03-29 19:10:13 +00:00