Commit Graph

410 Commits

Author SHA1 Message Date
alberth
137e2b64c9 (svn r20211) -Codechange: Indented code should have curly braces around it. 2010-07-24 10:14:39 +00:00
rubidium
1062330ba1 (svn r20194) -Fix: compilation with network disabled failed 2010-07-19 17:46:53 +00:00
rubidium
9fd2afb147 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 2010-07-19 17:28:27 +00:00
rubidium
54ec48f7ce (svn r20188) -Codechange: unVARDEF the _[config|log|highscore]_file variables and move them to a more logical location 2010-07-19 17:11:09 +00:00
rubidium
cd5bc729d4 (svn r20185) -Codechange: reduce the scope of _palette_animation_counter 2010-07-19 16:05:29 +00:00
rubidium
8894ae2ccb (svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location 2010-07-19 15:44:49 +00:00
rubidium
59fa346cbf (svn r20136) -Codechange: check more of the vehicle caches (when desync debug is turned on) 2010-07-13 20:12:44 +00:00
yexo
a0a657585e (svn r20055) -Feature: save/load hotkeys to/from hotkeys.cfg 2010-07-03 13:28:15 +00:00
rubidium
d8716dfa8a (svn r20039) -Fix [FS#3907]: instead of loading the intro game when loading a savegame fails on the dedicated server, generate a new game.
Generating a new game is the least bad solution:
 * loading the intro game: desyncs due to GM_MENU on the server and GM_NORMAL on the clients, NewGRFs not being loaded on the server but being loaded on the client;
 * creating an empty map: OpenTTD will go crazy due to missing towns. Also clients can't properly join because of the missing towns;
 * loading the last saved game: doesn't always exist and loading it might fail causing an infinite loop;
 * stopping being a server: breaks the dedicated server horribly; if you loaded the game via rcon you can't connect with it anymore as you can't join the server;
 * generating a new game: should always succeed, although people might think a scenario loaded fine because there are no companies and such.
2010-06-30 21:38:51 +00:00
rubidium
188f5f8e4d (svn r20038) -Change: move SafeSaveOrLoad a bit 2010-06-30 20:20:15 +00:00
frosch
d12e364952 (svn r19937) -Codechange: Move some fios related prototypes to fios.h 2010-06-05 19:02:29 +00:00
frosch
8ef0aed0ae (svn r19936) -Codechange: If there is an enum, also use it. 2010-06-05 18:44:31 +00:00
frosch
e684da2193 (svn r19934) -Fix [FS#3857]: When 'pause on new game' is set, pause the game before CleanupGeneration() to avoid conflicts with concurrent GUI code. 2010-06-05 15:22:46 +00:00
frosch
65d058723e (svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation. 2010-06-05 13:32:42 +00:00
frosch
a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 2010-06-05 12:16:12 +00:00
frosch
ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 2010-05-31 20:22:57 +00:00
smatz
0449d7d5b9 (svn r19850) -Codechange: move declaration of InitializeRailGUI() to rail_gui.h 2010-05-18 01:10:23 +00:00
rubidium
ad66d8e717 (svn r19688) -Codechange: run CheckCaches after the debug desync save, so we don't store just reset values in the savegame but the data from the previous tick 2010-04-21 12:55:33 +00:00
rubidium
74d7b676f2 (svn r19664) -Fix [FS#3749]: Crash of a dedicated server if the null blitter is overridden and (after a while) there is no company 0 on new year anymore 2010-04-17 22:19:14 +00:00
rubidium
e9f60d5d13 (svn r19592) -Fix: don't do the desync debug savegames mid-StateGameLoop; they're increadibly useless (or hard to load correctly) in that case 2010-04-09 16:01:48 +00:00
rubidium
ff5dfd9c7e (svn r19589) -Change: add some more useful information to the desync log and unify the formatting 2010-04-08 21:14:49 +00:00
rubidium
efb61fa3fc (svn r19587) -Fix: false positive in cache validity checking when a train crashes; the max curve speed depends on the 'angle' between wagons and with wagons spinning around randomly without updating the max curve speed cache that leads to "seeing" a difference. As the caches aren't useful for crashed vehicles anymore, just ignore those vehicles 2010-04-08 17:27:45 +00:00
rubidium
6e95c70f43 (svn r19586) -Fix: some false positives in cache validity checks because cache = v->cache doesn't necessarily write all sizeof(Cache) bytes 2010-04-08 17:07:35 +00:00
yexo
cc23ebd446 (svn r19457) -Codechange: introduce AirportOverrideManager to keep track of airports if a newgrf can't be found 2010-03-18 23:12:38 +00:00
frosch
37109f9b66 (svn r19403) -Fix (r19398): Test inverted. 2010-03-13 15:55:04 +00:00
rubidium
9981952acf (svn r19398) -Codechange: move the desync cache checking code to its own function. Also make the drive through and cargo list checks only run when 'desync' debugging is enabled. 2010-03-13 14:58:37 +00:00
yexo
79a8345749 (svn r19353) -Codechange: use static objects for the airport statemachines instead of new/delete at the start/end of the game
-Codechange: store the fta in AirportSpec
2010-03-06 15:38:13 +00:00
yexo
e6f148119d (svn r19331) -Fix: when deleting an airport the size from the AirportSpec was used instead of the stored airport size
-Fix (r19319): detecting if a plane was landed at an airport failed
-Fix: reset the airporttile mapping when restarting a game
2010-03-06 01:58:55 +00:00
rubidium
fa43522946 (svn r19233) -Fix: the -M command line option did not work 2010-02-24 22:41:51 +00:00
smatz
5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
yexo
11a878512e (svn r19213) -Change: warn if a fallback sound set is loaded and tell the user where to download a proper sound setd 2010-02-22 20:19:17 +00:00
rubidium
1c494c6f71 (svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel 2010-02-10 16:24:05 +00:00
smatz
c736bbb875 (svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword() 2010-02-10 15:17:27 +00:00
rubidium
8c6db1bfaa (svn r19073) -Fix (r15027): -a is not a command line parameter 2010-02-09 23:52:08 +00:00
smatz
1ecb257422 (svn r18853) -Codechange: apply coding style to GenWorld's enums, structs and typedefs 2010-01-17 22:59:24 +00:00
rubidium
ea240269dc (svn r18812) -Codechange: make some functions in train.h functions of Train. 2010-01-15 18:23:52 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
yexo
009e8cf001 (svn r18808) -Cleanup: deplicate by using an existing function 2010-01-15 16:37:19 +00:00
rubidium
42d7f30dcc (svn r18608) -Change: add the concept of music sets 2009-12-22 21:40:29 +00:00
rubidium
536a2c8b6a (svn r18598) -Fix [FS#3402]: also cancel the save-pause when loading a savegame as scenario 2009-12-22 08:34:40 +00:00
rubidium
0da7a4dc91 (svn r18546) -Codechange: make making the screenshot not asynchronious; just do it at the moment it's requested. 2009-12-19 19:21:37 +00:00
rubidium
5971619b1e (svn r18520) -Fix [FS#3272]: allegro doesn't like to work with extmidi; it causes 'random' (looks like a racing condition in allegro) crashes when songs are stopped. 2009-12-16 23:49:21 +00:00
rubidium
ec77e712b7 (svn r18483) -Document [FS#3367]: that OpenGFX/OpenSFX can be used and where to find them. Also refer to the readme in some error messages. 2009-12-13 14:23:45 +00:00
rubidium
0fed86a779 (svn r18404) -Codechange: link drive through stops better together
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
2009-12-04 20:52:19 +00:00
rubidium
da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
smatz
0c4cada640 (svn r18156) -Add: crash screenshot, created from blitter buffer 2009-11-17 23:12:42 +00:00
smatz
1dce59ed50 (svn r17937) -Codechange: rename current_screenshot_type to _screenshot_type 2009-11-01 18:08:58 +00:00
alberth
5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
rubidium
079b7fa034 (svn r17816) -Codechange: move the CargoList invalidation-after-saveload to the function that handles the CargoPackets instead of spreading it around over the saveload files. Also add some code to validate whether the caches are valid; to be removed later when no problems turn up 2009-10-20 12:20:53 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00