Darkvater [Wed, 01 Mar 2006 23:53:20 +0000] rev 3115
(svn r3719) - [1/4] Present the game with a unified structure for the configuration-ini, saveload, console and gui representations of the settings. This first part rewrites the configuration section to use the SaveLoad VarType in general.
- This unified structure consists of a SaveLoad type which stores all data relevant about the variable internals such as type, mem/filesize, address, version-control. The SettingDesc type is concerned more about the representation. Things like default value, string-name, minimum/maximum values, gui-behaviour etc.
- The SaveLoad type has received a few flags controlling saving/loading. These are:
SLF_SAVE_NO: the setting is not saved with the savegame, effectively making this setting player-based. Eg. it will NOT be overwritten when joining a network-game
SLF_CONFIG_NO: the setting is not saved to the configuration file so you cannot overwrite it ingame.
SLF_NETWORK_NO: the setting is not synchronised with the local settings when the game is loaded during network-play. Note that when SLF_SAVE_NO is set, SLF_NETWORK_NO is also set (which is logical), at least if the proper macros are used (in [2/4]).
- NOTE! The game is not compilable after this commit.
Darkvater [Wed, 01 Mar 2006 23:39:21 +0000] rev 3114
(svn r3718) - Add proper Doxygen comments to some saveload-structs (using ///<)
peter1138 [Wed, 01 Mar 2006 23:14:03 +0000] rev 3113
(svn r3717) - [2cc] Add 2cc colour maps and use for newgrf engines requiring them. Currently the second colour is fixed to be the player's colour.
Darkvater [Wed, 01 Mar 2006 21:15:25 +0000] rev 3112
(svn r3716) - Move the option settings (_game_opt_desc) from misc.c into settings.c. This will be merged with SettingDesc misc_settings above as they are actually the same. No functionality has changed beside the fact that the settings are now in a different Chunkhandler.
tron [Wed, 01 Mar 2006 21:00:44 +0000] rev 3111
(svn r3714) Add functions to turn tiles into water and shore tiles
Darkvater [Wed, 01 Mar 2006 20:49:47 +0000] rev 3110
(svn r3713) - Fix up the cheats window a little. The cheats code is still abominable, but at least a bit more readable now.
Use the now generalized ReadValue/WriteValue functions as well as using general variable-types (SLE_VAR, instead of custom CE_ ones).
Remove the CE_CLICK type and use a SLE_BOOL type instead with a flag of CE_CLICK.
Remove stepsize from the struct. The stepsize is automatically calculated from the minimum and maximum values (in 20 steps).
Darkvater [Wed, 01 Mar 2006 20:38:39 +0000] rev 3109
(svn r3712) - Change the boolean assignment/reading from == 1 to != 0 as suggested by Tron.
Darkvater [Wed, 01 Mar 2006 20:34:51 +0000] rev 3108
(svn r3711) - Extract the WriteValue() and ReadValue() parts of the saveload code to assign/read to/from a variable. Preparatory work to make this the general function type for such assignments
Darkvater [Wed, 01 Mar 2006 20:24:22 +0000] rev 3107
(svn r3710) - Use the general function DrawArrowButtons() instead of doing it manually. The function has two parameters added, colour and an enabled flag.
bjarni [Wed, 01 Mar 2006 19:20:35 +0000] rev 3106
(svn r3707) -Fix: made the generated Finnish town names sound more Finnish (ln-)
note: <ln-> Bjarni: please go ahead and commit it, i'll take the responsibility if something should go wrong.
peter1138 [Wed, 01 Mar 2006 17:35:01 +0000] rev 3105
(svn r3701) [2cc] move vehicle/engine palette functions out of header file and document the remaining definitions
tron [Wed, 01 Mar 2006 15:03:47 +0000] rev 3104
(svn r3699) Replace some magic numbers for checking for a suitable slope for a level crossing by some less magic numbers
tron [Wed, 01 Mar 2006 12:31:39 +0000] rev 3103
(svn r3698) Add GetCrossingRailBits() and ComplementRoadBits(). Simplify the code by using them
tron [Wed, 01 Mar 2006 09:40:34 +0000] rev 3102
(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes
tron [Wed, 01 Mar 2006 08:56:38 +0000] rev 3101
(svn r3696) Add functions to turn a tile into a normal rail tile/depot/waypoint. This is just a tiny step, the rail code needs way more love and caring