Charles Pigott
fe448a2616
Remove: OPF
2019-03-16 22:30:11 +00:00
PeterN
bcfc9620b0
Change: Use default value for invalid multi-string settings instead of clamping to min or max value. ( #7361 )
2019-03-16 16:52:07 +00:00
Peter Nelson
8b1b3fd0f9
Feature: Non-rectangular sparse station catchment area.
2019-03-09 16:33:47 +00:00
Gabda
37bb2c9308
Codechange: Make the style of MakeVoid calls uniform ( #7192 )
2019-02-08 23:05:25 +00:00
Peter Nelson
9de12521ec
Codechange: Convert saveload numbers to enum values.
...
(This was mostly achieved with a few in-place regexes)
2019-02-02 21:39:06 +00:00
Peter Nelson
0355f887d9
Fix #6438 : Properly invalidate AI Settings window when max no competitor setting is changed.
2019-02-01 15:20:52 +00:00
PeterN
23960d0f2c
Feature: Group liveries, and livery window usability enhancements. ( #7108 )
...
* Change: Replace checkbox in livery selection window with Default option in drop down selection.
This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired.
* Feature: Add vehicle group liveries.
2019-01-31 14:57:44 +01:00
Peter Nelson
4daaec1a94
Change: Invalidate ship path caches if pathfinder choice or forbid-90-degree turns are changed.
2019-01-19 23:11:17 +00:00
glx
c540d72445
Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32
2018-12-27 18:09:16 +01:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
frosch
b4b98e5165
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
peter1138
73ea8cdb21
(svn r27816) -Fix [FS#6421]: Do not search directories when opening ini files as we already have their full path.
2017-03-20 19:30:49 +00:00
alberth
b8414c2884
(svn r27285) -Codechange: Use LG_ORIGINAL instead of a magic 0 to indicate the original landscape generator.
2015-05-16 12:01:19 +00:00
frosch
c639fb0d8e
(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing max-vehicles settings. (adf88)
2015-02-22 15:26:27 +00:00
frosch
310258f283
(svn r27151) -Add: Allow changing max heightlevel in scenario editor.
2015-02-14 21:55:30 +00:00
peter1138
1088ad48fc
(svn r27004) -Codechange: Make GUI size apply to (sprite-font) text as well.
2014-10-12 20:43:25 +00:00
peter1138
253c91b17d
(svn r26990) -Feature: Add option to choose normal, double or quad-size interface.
2014-10-11 13:22:37 +00:00
alberth
c1e7c32f07
(svn r26611) -Feature: Save and load grfid and md5sum of newgrfs in config file (frosch)
2014-05-24 19:12:48 +00:00
rubidium
9ed12b0f07
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
rubidium
8960939b22
(svn r26499) -Codechange: replace strndup with stredup
2014-04-24 18:37:39 +00:00
rubidium
24fdd0b7bb
(svn r26494) -Codechange: replace some further usages of s(n)printf with seprintf
2014-04-24 17:40:43 +00:00
rubidium
b4914b91d9
(svn r26493) -Codechange: use strecat to concatenate script settings instead of manually accounting for the amount of characters that has been written
2014-04-24 04:41:54 +00:00
rubidium
5b82822c12
(svn r26486) -Codechange: replace a number of snprintfs with seprintf
2014-04-23 21:12:09 +00:00
frosch
ef4c2ce031
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
2014-04-23 20:44:42 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
frosch
41b7a04a68
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2014-02-07 23:48:56 +00:00
fonsinchen
3d0a0e8e48
(svn r25358) -Codechange: save and load link graph jobs and the schedule
2013-06-09 13:02:05 +00:00
frosch
23ba42b66c
(svn r25291) -Add: WindowDesc ability to load and store information in a config file.
2013-05-26 19:27:22 +00:00
rubidium
ef8d491d8f
(svn r24996) -Change: Apply default service interval changes to vehicles without custom interval (peter1138)
2013-02-14 17:08:56 +00:00
rubidium
99a08e1e8c
(svn r24968) -Fix [FS#5379]: company window was not updated when shared were enabled/disabled
2013-02-04 20:29:38 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
planetmaker
89a2ba2a6d
(svn r24899) -Fix [FS#5434]: Also the station build window needs redrawing when the station spread changes (based on patch by juanjo)
2013-01-08 22:38:59 +00:00
planetmaker
f8e0b22974
(svn r24894) -Fix [FS#5434]: Invalidate station selection window when station spread changes (based on patch by juanjo)
2013-01-08 17:44:39 +00:00
frosch
0efd29b71b
(svn r24860) -Codechange: Add SettingDesc::GetType().
2012-12-26 17:43:35 +00:00
frosch
21b43b63f5
(svn r24843) -Codechange: Move news display options into the general settings framework. (based on patch by eagle_rainbow)
2012-12-23 21:07:12 +00:00
michi_cc
c75962e04c
(svn r24833) -Codechange: Replace magic numbers for invalidating vehicle-related windows with an enum.
2012-12-20 19:44:02 +00:00
frosch
d1ab0f03bc
(svn r24790) -Remove: Classic difficulty profiles.
2012-12-05 19:36:41 +00:00
frosch
22dc45738d
(svn r24787) -Fix: Unify checks for editability of settings.
2012-12-05 19:35:09 +00:00
frosch
a499435351
(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables.
2012-12-05 19:34:45 +00:00
frosch
c6ed8c01b3
(svn r24250) -Fix [FS#5154]: Do not immediately display error messages from parsing the cfg file, but schedule them for displaying after the GUI is prepared for it.
2012-05-14 21:04:49 +00:00
frosch
c11d80148f
(svn r24247) -Fix: If loading of int-list settings fails, use the default.
2012-05-14 20:53:39 +00:00
frosch
599f89e641
(svn r24193) -Fix (r24191): Also update comments accordingly.
2012-05-01 15:34:45 +00:00
frosch
ec73ad1145
(svn r24192) -Fix [FS#5153-ish]: Also use default value when reading an invalid integer setting value.
2012-05-01 15:33:42 +00:00
michi_cc
3f267db3a6
(svn r24146) -Fix [FS#5153]: Use default value when reading an invalid setting value. (Eddi)
2012-04-17 19:45:04 +00:00
michi_cc
6c8a16f36e
(svn r24145) -Cleanup: Switch coding style.
2012-04-17 19:44:59 +00:00
truebrain
f239a61406
(svn r23609) -Add: save/load all GameScript related material
2011-12-19 20:56:34 +00:00
truebrain
561b25d031
(svn r23601) -Fix: fix the conflict in window number
2011-12-19 20:50:21 +00:00
rubidium
0ca25fb3af
(svn r23480) -Fix [FS#4594]: replace OS error messages with internal error messages when that's possible
2011-12-10 16:05:26 +00:00
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
2011-12-10 13:54:10 +00:00
frosch
34f9c4d00f
(svn r23427) -Fix: Do not load screen resolution and other basic stuff after bootstrap is finished. It was already loaded before, and might got changed already.
2011-12-04 13:21:51 +00:00
michi_cc
d3b7b89493
(svn r23415) -Feature: Infrastructure maintenance costs.
2011-12-03 23:40:46 +00:00
truebrain
a8b22e5292
(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')
2011-12-01 12:04:10 +00:00
truebrain
cc12942d70
(svn r23384) -Remove: no longer allow a binary to be without AI support; the parts some compilers failed at, are integrated in other parts of the code now too
2011-12-01 12:03:34 +00:00
truebrain
34d7f01ccc
(svn r23364) -Codechange: refactor AIConfig, moving it mostly to Scriptconfig
2011-11-29 23:26:35 +00:00
peter1138
15d0a22aac
(svn r23315) -Codechange: Only encode sprites for zoom levels that will be used.
2011-11-24 12:26:44 +00:00
peter1138
4e97261315
(svn r23314) -Add: Add settings to restrict viewport zoom levels.
2011-11-24 12:20:14 +00:00
rubidium
834eac49fd
(svn r23224) -Codechange: first load the config file partially so we can push scanning AIs to later in the process (when the GUI is showing the progress bar)
2011-11-14 21:42:54 +00:00
planetmaker
9309ef58a0
(svn r23211) -Fix: Invalidate build vehicle window when changing the setting for wagon speed limits
2011-11-14 10:42:47 +00:00
rubidium
bd64bf6372
(svn r23193) -Codechange: don't cast away const unneededly
2011-11-12 08:10:22 +00:00
yexo
a256bd71e4
(svn r23169) -Feature: [NoAI] AICONFIG_AI_DEVELOPER flags to hide AI settings unless gui.ai_developer_tools is enabled (Zuu)
2011-11-08 21:48:00 +00:00
rubidium
05300a00b1
(svn r22824) -Codechange: pass sub directory to ini loading
2011-08-24 13:38:26 +00:00
frosch
c544dca519
(svn r22618) -Fix [FS#4653]: When changing difficulty settings over the network, do not just reopen the difficulty window if any game options window is opened; instead invalidate them properly.
2011-07-02 12:58:37 +00:00
rubidium
dc74518b96
(svn r22577) -Fix: MSVC64 compile warning
2011-06-13 07:43:48 +00:00
frosch
615e435677
(svn r22522) -Fix (r22489): (size_t)(uint32)(-1) != (size_t)-1
2011-05-29 18:35:31 +00:00
rubidium
197fcab295
(svn r22489) -Fix [FS#4623]: don't cast pointers to unsigned long or vice versa
2011-05-22 21:40:26 +00:00
smatz
b5e132924e
(svn r22298) -Change: allow enabling 'freeform edges' setting when there is only station label above one of northern tiles
2011-04-07 15:58:21 +00:00
smatz
a8862eb77f
(svn r22297) -Fix [FS#4580]: the 'freeform edges' setting could be enabled when there were buoys on the northern border (adf88)
2011-04-07 15:48:13 +00:00
rubidium
f90044d343
(svn r22202) -Codechange: make MusicFileSettings a proper citizen of the client settings
2011-03-05 18:00:48 +00:00
rubidium
e48967541a
(svn r22198) -Codechange: make some constants name more explicit
2011-03-05 11:16:44 +00:00
alberth
31386c42a7
(svn r22145) -Codechange: Do explicit test for non-bool values.
2011-02-25 22:04:38 +00:00
yexo
b51c62f5af
(svn r22074) -Cleanup (r22073): there was already a setting-callback that did what is needed
2011-02-13 20:52:33 +00:00
yexo
f1377a228f
(svn r22073) -Fix: immediately update the train weight when you change the multiplier for train cargo weight
2011-02-13 20:45:17 +00:00
terkhen
8196b03074
(svn r22059) -Fix (r21179): Make the send chat message window follow the position of the status bar.
2011-02-11 18:24:12 +00:00
frosch
915e339d0f
(svn r21975) -Add: console command to reset the engine pool. It removes the traces of engines which are no longer associated to a NewGRF, and can be used to e.g. 'fix' scenarios which were screwed up by the author. You can only use it when there are no vehicles in the game though.
2011-02-05 16:07:23 +00:00
terkhen
91dcc9e016
(svn r21973) -Fix: Redraw the town authority window after modifying town authority settings.
2011-02-05 13:42:57 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
terkhen
b5468e7a80
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
2011-01-19 18:44:13 +00:00
frosch
6e4dd56158
(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7.
2011-01-15 21:13:47 +00:00
terkhen
5268d03abd
(svn r21715) -Fix: Use the correct land colour in the owner legend.
2011-01-04 20:53:57 +00:00
rubidium
ad15cd37a6
(svn r21698) -Fix: incorrectly named global variable
2011-01-02 18:12:39 +00:00
yexo
3ca65ab7b3
(svn r21695) -Codechange: add helper function to get the currently applicable GameSettings object
2011-01-02 00:34:21 +00:00
yexo
a25d6c64dd
(svn r21694) -Fix: changing AI settings ingame was impossible when the difficulty level was other than custom
2011-01-01 23:26:26 +00:00
terkhen
fc42e98226
(svn r21523) -Fix: Some windows were not updated correctly after a train acceleration model change.
2010-12-15 09:01:04 +00:00
alberth
997551c599
(svn r21467) -Doc: Add a few doxygen comments to config file settings code.
2010-12-11 15:14:28 +00:00
rubidium
b6c2216749
(svn r21358) -Codechange: make some network function names conform to coding style
2010-11-30 13:38:46 +00:00
alberth
3e27739287
(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
2010-11-21 12:47:04 +00:00
rubidium
16c90ed48b
(svn r21244) -Fix [FS#4240] (r21179): the news message always stayed in the middle; let it follow the setting of the statusbar instead
2010-11-18 19:24:40 +00:00
rubidium
a9da53c106
(svn r21179) -Fix [FS#4201] (r69): if the main toolbar's location is configurable, why isn't the statusbar's location configurable?
2010-11-13 23:40:36 +00:00
rubidium
aea8274dba
(svn r21155) -Fix [FS#4222] (r14959): default service interval for ships/aircraft got switched
2010-11-12 21:40:43 +00:00
planetmaker
5565ae1ac0
(svn r21116) -Add [FS#3012]: Reduce the chances to accidentially break savegames with NewGRFs
2010-11-07 21:46:41 +00:00
terkhen
42ee8f7df7
(svn r21082) -Fix (r21080): Compilation error.
2010-11-04 19:34:40 +00:00
terkhen
725cf7d8bb
(svn r21080) -Fix: Do not allow to use a custom water level with the original map generator.
2010-11-04 18:34:37 +00:00
rubidium
6d11c09ee6
(svn r21075) -Fix [FS#4192]: Wrong (maximum) value shown for generation seed in the in-game console
2010-11-01 22:53:05 +00:00
frosch
c49debbe63
(svn r20901) -Fix/Change: When using non-smooth or newgrf-economy changing production rates does not work (anymore), so allow changing the production multiplier instead.
2010-10-04 20:12:38 +00:00
smatz
77fe95f552
(svn r20860) -Cleanup: remove some unused functions and variables
2010-10-01 16:42:28 +00:00
frosch
717fcd09c6
(svn r20849) -Change: Only display liveries in the liverywindow if they are used by some vehicle somewhen (not considering date or such).
2010-09-25 22:00:49 +00:00
alberth
9f5a96ead2
(svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file.
2010-08-29 15:58:43 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
rubidium
eb30ebe1a4
(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
frosch
0270ca846e
(svn r19978) -Add: Read settings during SL_LOAD_CHECK.
2010-06-13 14:14:37 +00:00
frosch
62ac138154
(svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now).
2010-06-13 14:11:59 +00:00
alberth
2224c9b515
(svn r19910) -Doc: Doxygen additions.
2010-05-30 13:16:51 +00:00
rubidium
dd743bcea1
(svn r19865) -Fix [FS#3830]: crash when changing locale settings from console due to strcpy-ing a string into a pointer
2010-05-20 15:14:10 +00:00
rubidium
f1c1812e47
(svn r19864) -Fix: don't print a pointer as string for listing (a) setting(s)
2010-05-20 15:12:48 +00:00
rubidium
fef77ca53e
(svn r19705) -Change: reinitialise the windows when changing the newgrf_developer_tools setting
2010-04-24 13:22:17 +00:00
smatz
dea165c3be
(svn r19578) -Codechange: do not accept commas at invalid places in ParseIntList()
2010-04-07 21:18:17 +00:00
smatz
5eb1e3d033
(svn r19577) -Codechange: apply coding style to names of functions in settings.cpp
2010-04-07 20:28:02 +00:00
alberth
1e48b2332e
(svn r19576) -Codechange: Unduplicating parse_intlist().
2010-04-07 20:09:53 +00:00
yexo
e3591f8a1d
(svn r19429) -Fix: when the title game contains an AIPL block the AI settinsg where overwritten by those from the title game
2010-03-15 22:42:43 +00:00
yexo
f206958010
(svn r19389) -Fix [FS3676]: only show the "No AIs available" error message when explicitly changing the number of AI opponents
2010-03-12 01:37:41 +00:00
terkhen
3ed1442e05
(svn r19348) -Add: Allow to sort road vehicles by power and by power vs running cost at the engine preview window.
2010-03-06 13:03:17 +00:00
terkhen
be3b839ded
(svn r19347) -Add: Vehicle GUI now shows power, weight and tractive effort for road vehicles.
2010-03-06 12:59:28 +00:00
terkhen
b443a3ee0a
(svn r19346) -Feature: Configurable slope steepness for road vehicles from 0% to 10%, default is 7%.
2010-03-06 12:58:33 +00:00
terkhen
c958c2c31f
(svn r19345) -Feature: Realistic acceleration for road vehicles.
2010-03-06 12:56:57 +00:00
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
2010-02-25 20:06:11 +00:00
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
yexo
804a6894c5
(svn r19096) -Fix: segfault when one of the items in the news_display group in the config file has no value
2010-02-11 15:12:08 +00:00
rubidium
21bd2722cd
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
2010-02-10 16:24:05 +00:00
smatz
b91b3ac836
(svn r19074) -Change: when filtering list of settings and console commands, use strstr() instead of strncmp()
2010-02-10 13:52:10 +00:00
terkhen
52312ea17f
(svn r19064) -Feature: Allow to select different land colours for the smallmap (reworked by Alberth).
2010-02-08 23:46:35 +00:00
yexo
dc714960e3
(svn r18952) -Fix (r18950): loading recent (=newer then title game) savegames failed
2010-01-29 21:06:35 +00:00
yexo
f381b91de0
(svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid
2010-01-29 18:21:10 +00:00
yexo
d75b9f1642
(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)
2010-01-28 23:17:28 +00:00
rubidium
7ec3d9a0c6
(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
2010-01-21 23:19:50 +00:00
rubidium
a8749ffa5b
(svn r18864) -Fix [FS#3532]: town noise population settings could not be changed in-game
2010-01-18 21:44:31 +00:00
rubidium
719fb9803c
(svn r18838) -Codechange [FS#3524]: reorganisation of the train acceleration code plus some minor optimisations (Terkhen)
2010-01-16 22:30:04 +00:00
rubidium
aaf0b4b46c
(svn r18812) -Codechange: make some functions in train.h functions of Train.
2010-01-15 18:23:52 +00:00
rubidium
82fc28f77f
(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
rubidium
ebe99fd493
(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.
2010-01-11 20:32:32 +00:00
rubidium
d58e4084de
(svn r18378) -Codechange: move the pathfinder 'length' constants to pathfinder_type.h
2009-12-02 16:38:33 +00:00
rubidium
f52e27c688
(svn r18364) -Codechange: move the pathfinders and their related files into a separate directory
2009-12-01 22:45:39 +00:00
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
6befa88d82
(svn r18285) -Feature: show the expected arrival/departure dates in the timetable window. Based on work by PhilSophus.
2009-11-25 16:17:06 +00:00
smatz
f0c64208cf
(svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others)
2009-11-24 21:18:11 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
alberth
44aacfc59f
(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
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
4347758e48
(svn r17658) -Codechange: remove custom drawing of the signal density in the signal GUI
...
-Codechange: move the state updates from OnPaint
2009-09-28 12:38:35 +00:00
rubidium
ac99610a05
(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.
2009-09-26 17:43:06 +00:00
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
2009-09-20 23:11:01 +00:00
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00
rubidium
04d5b67eb6
(svn r17567) -Fix: some doxygen warnings
2009-09-18 14:23:58 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00