Commit Graph

318 Commits (332846e9e28924314443850b4ca646261882cca0)

Author SHA1 Message Date
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 15 years ago
frosch 959c297fb9 (svn r15645) -Fix (r12924)[FS#2612]: Add an EngineOverrideManager to give the term 'compatible newgrf' again some sense and to not crash because of trivial changes. 16 years ago
yexo c1b27cf648 (svn r15590) -Fix (r15584): _screenshot_name is an array, not a char * pointer. 16 years ago
yexo b8601d903d (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 16 years ago
yexo 7e818f0456 (svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum. 16 years ago
yexo bd2544b5ea (svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte. 16 years ago
rubidium 68282c4172 (svn r15546) -Fix [FS#2651]: keep_all_autosave ignored for dedicated servers/spectators. 16 years ago
rubidium 38d66e69af (svn r15543) -Change: allow the default debug level of 6 for a dedicated server to be overriden by -d (if used after -D). 16 years ago
yexo 6381cbeeae (svn r15495) -Revert (r15383,r15422): Loading NewGRFs depends on correct settings, but the economy can only be started after loading NewGRFs. In short: r15383 causes more problems then it's worth. 16 years ago
rubidium 218f53d3fd (svn r15455) -Fix: font autodetection didn't occur when directly loading a game via e.g. -g. 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium a7264bd5aa (svn r15422) -Fix [FS#2623] (r15383): loading NewGRFs before copying the settings. 16 years ago
rubidium 283b3d16ab (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
Yexo c4391379d2 (svn r15390) -Cleanup: Remove old hack that wasn't used anymore. 16 years ago
peter1138 68eb306381 (svn r15386) -Codechange: During start up, store driver/blitter/graphicsset selection in local variable instead of in the global _ini_* variables. This means that specifying a driver/blitter/graphicsset on the command line does not clobber the configuration value, which can now be saved like other values. 16 years ago
Yexo caf540d284 (svn r15383) -Cleanup: Don't call MakeNewgameSettingsLive more often than necessary. 16 years ago
rubidium 42fe0b65d2 (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 5ecd1be89d (svn r15243) -Fix [FS#2446]: rejoining a server would abort the join (and kick the client) because trying to join with an invalid player ID 16 years ago
rubidium 4aabc91c04 (svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again. 16 years ago
smatz 575a3a4563 (svn r15144) -Codechange: make sure we don't run out of bounds while determining old savegame name
Note this can't happen in current code
16 years ago
truebrain c2406cd42d (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
peter1138 2ef54545c7 (svn r14911) -Fix (r14909): -D did not work 16 years ago
peter1138 553d65f584 (svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters. 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
smatz 7869c4ba66 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 16 years ago
smatz cd88a7590a (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 16 years ago
rubidium f316796629 (svn r14803) -Codechange: move order list management into it's own class and remove the order count from the savegame as we can easily count that (PhilSophus) 16 years ago
rubidium 741f0a86fe (svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus) 16 years ago
rubidium 2fb24a8a83 (svn r14773) -Fix-ish[FS#2469]: attach a signal handler during loading savegames to catch any crashes due to broken savegames/missing NewGRFs and tell the user about that instead of "just" crashing without explanation. 16 years ago
rubidium f55995f1ef (svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option. 16 years ago
rubidium e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium 634842525b (svn r14744) -Fix [FS#2474]: don't tell loading a savegame failed in two distinct ways. 16 years ago
smatz c88a6199a7 (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 16 years ago
rubidium bf6ec8b19f (svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
smatz c6c3124c30 (svn r14700) -Fix (r1): loading of very old savegames was broken (STNS chunk is stored before MAP in old savegame) 16 years ago
frosch 4c01a1c6af (svn r14682) -Fix (r14672): Check the correct savegame version. (Thanks SmatZ) 16 years ago
frosch c1d1ba22cc (svn r14672) -Fix [FS#2444]: Property 7 and callback 12 were broken for aircraft.
Now callback 12 is properly called also for 'mail'.
If the callback is not used, 'mail' uses 1/4 of property 7 (rounded up).
16 years ago
rubidium 5ebb48fa86 (svn r14631) -Add: support for Allegro as sound backend. 16 years ago
smatz e50a4f2053 (svn r14612) -Change: force the argument given to '-i' parameter to be valid. Accept '2', too 16 years ago
frosch 70f2b95bda (svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
16 years ago
rubidium 84ed955492 (svn r14598) -Feature: Action0Industries property 24 (industry suuplies default name for nearby station). 16 years ago
smatz 698f05e756 (svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation
-Codechange: rewrite parts of code responsible for caching index of nearest town
16 years ago
skidd13 9b282b3e51 (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
rubidium 0d2f84e117 (svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly. 16 years ago
frosch e65be653f5 (svn r14535) -Fix: Description of '-i' commandline option. 16 years ago
rubidium 52ac592422 (svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus) 16 years ago
frosch 56e5972790 (svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games. 16 years ago
rubidium b5e467978b (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) 16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago