Commit Graph

400 Commits (18e157fe7ac38194815351760338854ce136e9ed)

Author SHA1 Message Date
terkhen f78a386b87 (svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%. 15 years ago
terkhen e6878d7ba1 (svn r19345) -Feature: Realistic acceleration for road vehicles. 15 years ago
yexo daf89297fe (svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized 15 years ago
yexo b21278659c (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it 15 years ago
smatz 5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
yexo 7996672521 (svn r19096) -Fix: segfault when one of the items in the news_display group in the config file has no value 15 years ago
rubidium 1c494c6f71 (svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel 15 years ago
smatz 85c856a3ac (svn r19074) -Change: when filtering list of settings and console commands, use strstr() instead of strncmp() 15 years ago
terkhen ad0b94ae44 (svn r19064) -Feature: Allow to select different land colours for the smallmap (reworked by Alberth). 15 years ago
yexo d9bd9bb945 (svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed 15 years ago
yexo f6143cd478 (svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid 15 years ago
yexo 504cf35de0 (svn r18943) -Feature [FS#2885]: make it possible to change newgame settings from within a game via the console (use setting_newgame instead of setting) 15 years ago
rubidium aa29299d05 (svn r18883) -Codechange: warn in the difficulty and AI configuration window when setting the number of AIs to non-zero when you don't have AIs 15 years ago
rubidium 30fd2ed3c1 (svn r18864) -Fix [FS#3532]: town noise population settings could not be changed in-game 15 years ago
rubidium ff69edfc17 (svn r18838) -Codechange [FS#3524]: reorganisation of the train acceleration code plus some minor optimisations (Terkhen) 15 years ago
rubidium ea240269dc (svn r18812) -Codechange: make some functions in train.h functions of Train. 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 7f1bf45c03 (svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company. 15 years ago
rubidium 720875fd55 (svn r18378) -Codechange: move the pathfinder 'length' constants to pathfinder_type.h 15 years ago
rubidium 2f3053508d (svn r18364) -Codechange: move the pathfinders and their related files into a separate directory 15 years ago
rubidium da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 15 years ago
rubidium dea921ad62 (svn r18285) -Feature: show the expected arrival/departure dates in the timetable window. Based on work by PhilSophus. 15 years ago
smatz f7466979b9 (svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others) 15 years ago
rubidium 224f4e0197 (svn r18028) -Codechange: unglobalise some functions 15 years ago
alberth 5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 3649e86c15 (svn r17658) -Codechange: remove custom drawing of the signal density in the signal GUI
-Codechange: move the state updates from OnPaint
15 years ago
rubidium 27ef5b3255 (svn r17644) -Fix [FS#3219]: some inconsistencies with the difficulty settings in the scenario editor. Also re-enable changing some difficulty settings (e.g. max loan) in the scenario editor. 15 years ago
smatz f85b8c4e09 (svn r17596) -Codechange: constify some tables 15 years ago
rubidium 2e5596025c (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium 06e490fadc (svn r17567) -Fix: some doxygen warnings 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
frosch 263952f557 (svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already. 15 years ago
frosch 0867784862 (svn r17510) -Fix [FS#3197]: When loading GRFConfigs from ini file, validate them wrt. duplicate GRF IDs. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium cdb969e164 (svn r17133) -Codechange: generalise the code that searches for base graphics 15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 79deeee323 (svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords. 15 years ago
yexo 46529bd491 (svn r16750) -Fix: mark the intro gui dirty when changing the difficulty level to avoid glitches on the difficulty button 15 years ago
smatz 1e1f0ab2cf (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train 15 years ago
smatz 20fedeb3d6 (svn r16717) -Codechange: make IsFrontEngine() member of Train 15 years ago
smatz 72bee4ad2d (svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made 15 years ago
rubidium b5f49d5b5a (svn r16635) -Fix: a couple of MSVC 64 bits warnings 15 years ago
smatz d65963a48f (svn r16603) -Codechange: enumify map size limits (based on a patch by Bilbo) 15 years ago
frosch a490ae68ed (svn r16600) -Fix: Give a more meaningful error message when console commands expect an integer but don't get one. 15 years ago
smatz 2d841c66e5 (svn r16554) -Fix (r16433): compilation with disabled network was broken 15 years ago
smatz c5240c770c (svn r16494) -Codechange: cache train's speed limit caused by curves 15 years ago
yexo 9b0476951d (svn r16447) -Fix [FS#2922] (r16444): compiling on x86-64 failed 15 years ago
yexo 18d0a5238f (svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them. 15 years ago
smatz e419fe6d3f (svn r16442) -Codechange: use new Vehicle accessors at more places 15 years ago
smatz 0c53f04c07 (svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types 15 years ago
yexo f044ad6f80 (svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them. 15 years ago
rubidium d39f442bd0 (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 15 years ago
yexo 68042a6dde (svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting 15 years ago
yexo 7eb9ad0415 (svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies. 15 years ago
rubidium c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
smatz 769de62daf (svn r16338) -Codechange: split loading of references to two phases
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers
15 years ago
yexo d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 15 years ago
frosch a18f0f93af (svn r16161) -Fix (r16128): AILoadConfig() could not handle NULL settings. 15 years ago
rubidium 9dd88c1586 (svn r16132) -Fix (r7232/r16129): crash when saving games; r7232 is the cause of the problem, r16129 just causes it to be triggered. 15 years ago
rubidium 90879b0da5 (svn r16128) -Change: allow loading (and storing) NULL values for STRQ in openttd.cfg. 15 years ago
rubidium 11e2ca71e6 (svn r16024) -Codechange: harden string copying on places where it's possible 15 years ago
rubidium 41286d0915 (svn r16018) -Fix (r16014): properly escape IPv6 style ([::]) addresses so they aren't seen as new groups. 15 years ago
rubidium 8cd7def31c (svn r16014) -Feature(-ish): allow binding to several IPs; [network]:server_bind_ip doesn't exist anymore. Add the IPs/hostnames to [server_bind_addresses] 15 years ago
rubidium bc7a870a61 (svn r15931) -Codechange: let the host and ban lists use of SmallVector. 15 years ago
yexo 790af95126 (svn r15795) -Codechange: Move the settings table from settings.cpp to table/settings.h. Patch breaking time :) 15 years ago
rubidium f524d39963 (svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly 16 years ago
yexo e59a6b3123 (svn r15771) -Fix (r13256): Settings from the [gameopt] section (from 0.6 config files) were overwritten with default values. 16 years ago
yexo d02548b204 (svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic classes ScriptScanner/ScriptFileInfo. 16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
belugas aa441cd4d7 (svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
Some warnings: 
-the maximum number of towns to be accepted is set to 5000
-the minimum number of towns to be accepted is set to 1
-the number that is specified is NOT guaranteed to be the exact number of towns generated.  The normal mechanism of town creation has not been modified.  So town placement can still fail.
-setting a custom number of town will change your difficulty settings to custom as well
16 years ago
glx 5896f5db57 (svn r15673) -Fix: it was not possible to compile a win32 dedicated server (even if 'configure --enable-dedicated' passed) 16 years ago
frosch 4cc20fe0ae (svn r15656) -Fix: Changing dynamic_engines also requires reloading newgrfs as well as resetting the OverrideManager. 16 years ago
rubidium 9f2a906bc1 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
16 years ago
yexo ddca27b1ab (svn r15586) -Fix [FS#2687]: Changing vehicle.dynamic_engines when there are already vehicles can cause crashes. 16 years ago
yexo 598d20eedc (svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui. 16 years ago
smatz cb13180774 (svn r15506) -Codechange: rename ScenarioEditorTownGenerationWindow to FoundTownWindow 16 years ago
smatz b83b58dd54 (svn r15500) -Fix (r12648): pre-0.5 OTTD stored new_nonstop and full_load_any in a different way, savegame conversion wasn't working for them 16 years ago
smatz 91d6c1bb31 (svn r15499) -Fix (r15340): the default town layout was changed 16 years ago
rubidium 5c8cf85613 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 16 years ago
rubidium 5fa99b177e (svn r15429) -Change: do r15428 also for the string names. 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 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
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
peter1138 645e8c4b69 (svn r15385) -Fix: Saving of char* to configuration file did not work due to incorrect parameter order and no handling of NULL. 16 years ago
rubidium b02cbf8844 (svn r15384) -Change: tweak some settings to make OpenTTD easier to use for first-time users (or upgraders) 16 years ago
rubidium af44ded566 (svn r15362) -Change: make a string name more consistent. 16 years ago
smatz 3a8d57816a (svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly road networks
-Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore
-Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
16 years ago
rubidium ce1fcfd8c0 (svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command. 16 years ago
smatz e3216e4b4b (svn r15334) -Codechange: reset setting to old value when the callback procedure returns false 16 years ago
peter1138 b3f3df76e8 (svn r15301) -Feature [FS#104]: Add option to group and subtotal expenses list in the company finance window. Concept from Zr40. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium 2722cabcce (svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral) 16 years ago
Yexo 2ce1c074b9 (svn r15239) -Fix [FS#2579]: The start date of random AIs was not stored in the config file or the savegame. 16 years ago
peter1138 598fdab47e (svn r15236) -Codechange: Rename realistic_acceleration patch option to train_acceleration_model, and change from boolean to value. Don't forget to update your settings. 16 years ago
Yexo bd08be44ea (svn r15212) -Feature [FS#2566]: Change the dropdown box where you can chose which edges will be water to 4 pushbuttons (based on patch by planetmaker). 16 years ago
Yexo e3c69b7c4e (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 16 years ago
rubidium 07ed9999d2 (svn r15164) -Fix: don't list patches/settings with list_patches that are not valid anymore 16 years ago
Yexo e84ff99a8b (svn r15148) -Cleanup: Remove the options "competitor start time" and "competitor intelligence" from the difficulty options because they already were unused. 16 years ago
peter1138 c4c32692df (svn r15085) -Fix (r14164): Clearing a settings group did not delete old items nor reset the last_item pointer, causing lists to not be saved unless they started blank. 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
frosch 9d659c306d (svn r15019) -Fix (r14919): Close station selection window, when disabling distant-join setting. (PhilSophus) 16 years ago
rubidium 88e3815176 (svn r14959) -Fix [FS#2508]: wrong defaults for service interval when switching between service interval in days and service interval in percentages. 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium 054787f082 (svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces 16 years ago
rubidium f902e3097d (svn r14938) -Fix: some small inconsistencies w.r.t. "0 is disabled" setting handling 16 years ago
rubidium 7a5798695d (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 16 years ago
peter1138 8591ff41cc (svn r14909) -Codechange: Remove global option for the extmidi driver and make it a driver parameter with the name cmd instead. This means if you have an "extmidi = ..." line in your config you must change it to "musicdriver = extmidi:cmd=...", in the [misc] section. 16 years ago
peter1138 553d65f584 (svn r14907) -Codechange: Remove 32 character limit from driver/blitter selection and parameters. 16 years ago
frosch eb6df17b1a (svn r14902) -Feature: Advanced setting to keep various building tools active, which are usually closed after placing an object. (planetmaker) 16 years ago
rubidium 567b262901 (svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
michi_cc b201fb1226 (svn r14852) -Feature: Automatic reversing in front of block signals can now be disabled by setting pf.wait_oneway_signal respectively pf.wait_twoway_signal to 255. 16 years ago
smatz ec7ebf2170 (svn r14835) -Change: apply the 'warn if train's income is negative' setting to other vehicle types, too 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
rubidium e62e12e7f5 (svn r14827) -Feature [FS#1984]: few (optional) optimisations to making (initial) orders (sulai) 16 years ago
rubidium a41e60d255 (svn r14822) -Change: save 'build station' settings in the config file, like drag'n'drop and and show coverage area (Rexxars) 16 years ago
rubidium 4c1c6cd8e8 (svn r14792) -Feature: make the date format for default savegame/screenshot names configurable 16 years ago
rubidium d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 16 years ago
rubidium 5aa2dac751 (svn r14767) -Codechange: remove some unneeded artificial limits from currencies and use the bounds of the data type. 16 years ago
rubidium ef20d229ab (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 16 years ago
rubidium e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium e6ff168508 (svn r14732) -Codechange: replace some magic number with less magic constants and use the proper type for a few variables. 16 years ago
rubidium 258ebb8173 (svn r14729) -Fix: writing a single char to the config file caused reading outside a buffer. 16 years ago
rubidium 4ce0e8ccce (svn r14727) -Codechange: replace some magic numbers with a constant. 16 years ago
rubidium 593f034c07 (svn r14675) -Fix: setting the Estonian or custom currency as used currency didn't survive a restart cycle. 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
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
frosch 40018be915 (svn r14412) -Documentation: Comment some functions related to the advanced settings. Patch by Alberth, but with less excessive use of 'at'. 16 years ago
smatz 36937525c4 (svn r14289) -Fix [FS#2286](r3720)(r1): sound effects an music volume should be in range 0-127, default value shouldn't be higher
(based on a patch by kakaopor)
16 years ago
frosch c229e15b91 (svn r14276) -Fix: Rename one of the advanced settings, as 'TTDPatch compatible nonstop handling' wasn't a correct description anymore. 16 years ago
rubidium 915a09e4c6 (svn r14197) -Codechange: rework (original) base graphics determination methods. This yields in the following:
-Feature: make configuring the to-be-used base graphics via openttd.cfg and the command line possible.
-Feature: allow both the German as well as non-German toyland graphics as "correct" and official graphics.
-Feature: allow people to create their own base graphics easily and without requiring code changes.
16 years ago
rubidium 509b77371f (svn r14185) -Fix (r14153): removing NewGRFs from the config file was impossible. 16 years ago
smatz 1294253d68 (svn r14174) -Fix: since now, we are 'losing' things, not 'loosing' 16 years ago
rubidium 4548c5a26b (svn r14167) -Fix: items in some ini-groups got duplicated on save. 16 years ago
rubidium d7bfd54a3d (svn r14164) -Codechange: simplify and unify the addition of ini items with value when not loading an ini file.
-Fix: wrong insertion management causing leaks.
16 years ago
rubidium 7ceb1252a2 (svn r14153) -Codechange: split ini file reading/saving from settings.cpp. 16 years ago
rubidium 083fbf9a96 (svn r14056) -Fix [FS#2192]: the console backlog is too small for list_patches. Now it'll only remove backlog items when there are more than a threshold and when they are there longer than (another) threshold. 16 years ago
rubidium 6199dc987b (svn r14052) -Codechange: make the size of the chat message "box" configurable and increase the default size slightly so it can hold the longest chat messages. 16 years ago
glx 9fa2cbd93e (svn r14041) -Feature(tte): make it possible to filter list_patches output like it's done for other list_* console commands 16 years ago
rubidium e62a150293 (svn r13967) -Codechange [YAPP]: Tweak pathfinder penalties a bit. (michi_cc) 16 years ago
rubidium 2e2a6d4909 (svn r13952) -Add [YAPP]: Trains now reserve paths trough PBS signals. Bump savegame version. (michi_cc) 16 years ago
rubidium c05c10ae71 (svn r13947) -Codechange [YAPP]: Added YAPP-related penalties to NPF. (michi_cc) 16 years ago
rubidium 22b787791f (svn r13943) -Codechange [YAPP]: Reserved station tiles can now be penalized more in YAPF. This should help with spread out stations. (michi_cc) 16 years ago
rubidium 968a0e907c (svn r13942) -Codechange [YAPP]: Add a penalty for double slips to YAPF. (michi_cc) 16 years ago
rubidium 27cfb68d93 (svn r13941) -Codechange [YAPP]: Added YAPP-related penalties to YAPF. (michi_cc) 16 years ago
rubidium b29f290816 (svn r13935) -Codechange [YAPP]: PBS signals can now be built with the normal signal tools. (michi_cc) 16 years ago
rubidium bef1770590 (svn r13927) -Add [YAPP]: Draw reserved tracks darker, toggeld by a patch setting. (michi_cc) 16 years ago