Commit Graph

182 Commits

Author SHA1 Message Date
rubidium 3cab5f30c0 (svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
2006-08-16 11:39:55 +00:00
rubidium 0d3ccad29f (svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
2006-08-15 15:18:03 +00:00
rubidium 8aa76f306d (svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this. 2006-08-15 14:52:17 +00:00
Darkvater 029105ea1c (svn r5908) - Codechange (r5903): Move the retrieval of the new value of a patch to console_cmds.c, so there is no need for that function in settings.c 2006-08-15 07:37:01 +00:00
Darkvater 8fc2664237 (svn r5903) -Fix [FS#170]: Changing patch settings through the console didn't accept on/off or true/false. 2006-08-15 00:26:24 +00:00
rubidium 243872b4fd (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-14 14:21:15 +00:00
Darkvater e885129ab8 (svn r5874) -Feature [FS#234]: Remember the maximized state and restore on start. This also fixes a bug where a different resolution is chosen for a maximized window, but it retains the maximized flag. Only win32. 2006-08-13 10:22:34 +00:00
Darkvater 00aaf8b8f1 (svn r5871) -Feature: Add a possibility to handle pointer strings without a buffer from the configuration file. Handy for variables that will never be changed during runtime 2006-08-12 22:56:45 +00:00
belugas 40021f15f0 (svn r5504) Feature : Added Italian town name generator. (sidew) 2006-07-16 00:32:00 +00:00
tron 7f8695c4fd (svn r5397) -Fix: Redraw the screen, when switching the signal side 2006-06-28 06:12:23 +00:00
tron 2b27073156 (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular 2006-06-27 21:25:53 +00:00
Darkvater 1522fbb397 (svn r5360) - Fix (r5359): *sigh*, compile before you commit... 2006-06-25 12:28:40 +00:00
Darkvater a0445ce3a2 (svn r5359) - Setting a patch value through the console would show the old value as a confirmation. This was caused by the actual action being executed a tick later in multiplayer mode. Simply work around it by not showing the new value. If someone really must now it, just query again. 2006-06-25 12:27:49 +00:00
tron 0a72639c2d (svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc. 2006-06-10 08:37:41 +00:00
KUDr b690e85604 (svn r5170) - CodeChange: corrected name for "road_crossing_penalty" (mistake in previous commit) 2006-06-08 17:36:06 +00:00
KUDr c7d1e2eab5 (svn r5169) - CodeChange: [YAPF] RVs now use YAPF_TILE_LENGTH as base unit and 2 configurable settings (slope and crossing penalties) for cost calculation 2006-06-08 17:31:03 +00:00
KUDr 0b3e83a2fb (svn r5164) - CodeChange: [YAPF] settings of platform penalties are now saved only in network savegames (thanks glx) 2006-06-07 21:26:57 +00:00
tron aada042d57 (svn r5136) Fix various style bugs:
- Trailing whitespace
- Trailing empty lines
- Missing newline at EOF
- Missing svn:eol-style native
2006-06-05 18:10:43 +00:00
KUDr 03f8994114 (svn r5076) CodeChange: [YAPF] Platform selection feature related settings added into regular savegames (breaks savegame compatibility only with r5070 and 5071). 2006-06-02 16:31:35 +00:00
KUDr d680fcec77 (svn r5067) -Codechange: [YAPF] Platform selection feature now applies penalty per platform instead of per tile (should give better results) 2006-06-01 22:20:40 +00:00
KUDr bd25f49d3f (svn r5066) -Feature: [YAPF] Train selects the best station platform by length 2006-06-01 21:39:35 +00:00
KUDr 5e73dce0e7 (svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing. 2006-05-27 16:12:16 +00:00
KUDr dc1408097f (svn r4916) - Fix: SLE_BOOL replaced by SLE_UINT8 for byte _network_lan_internet 2006-05-19 20:32:45 +00:00
celestar 5c677d49f4 (svn r4639) -Feature: Turkish town names (jnmbk) 2006-05-01 09:25:23 +00:00
Darkvater 4be0b3a5f3 (svn r4531) - Fix [NewGRF]: overzealous fixing, reset num_params to 0 from -1 when parsing the parameter list fails. 2006-04-22 14:06:46 +00:00
Darkvater a98cdf9750 (svn r4530) - Fix [NewGRF]: don't spew a warning when a grf file has no parameters. 2006-04-22 13:59:21 +00:00
Darkvater e3280971b1 (svn r4527) - Feature [NewGRF]: Add support for specifying parameters to GRF files. Usage: "mygrf = 1". You can pass up to 128 parameters, each one seperated by a comma or a space-character. Big thanks to peter1138 for the inspiration and examples. 2006-04-22 13:17:13 +00:00
Darkvater 8dd7d35eb5 (svn r4512) - Codechange: Sprinkle some doxygen magic over settings.c 2006-04-22 00:10:38 +00:00
peter1138 3c64af4606 (svn r4498) - Use an item's name instead of value when parsing configuration lists. 2006-04-21 09:18:39 +00:00
Darkvater 9febcd5ef8 (svn r4491) - Codechange: handle IGT_LIST types just as the other types with a proper name and value setting (for example for newgrf parameters). 2006-04-20 22:09:49 +00:00
Darkvater ac76328827 (svn r4490) - Feature: The integer-list parser now accepts a space character as an item seperator next to the comma. 2006-04-20 22:09:12 +00:00
Darkvater abf0d81782 (svn r4489) - Codechange: some small cleanups in the settings-parser code, mainly substituting terminating 0 characters with '\0'. 2006-04-20 22:08:20 +00:00
peter1138 5ddf986c8d (svn r4487) - Codechange: replace the custom currency magic number 23 with a define 2006-04-20 21:13:08 +00:00
bjarni 60d123c0fa (svn r4445) -Fix: FS#108 Danish name generator bug
this was actually not a bug in the generator, but rather it saved/loaded the setting danish as swiss (the previous in the list)
2006-04-16 10:26:46 +00:00
tron 81e6d68f95 (svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-04-10 07:15:58 +00:00
celestar cb76f96aad (svn r4153) -Codechange. Changed NPF_TILE_LENGTH into an enum and moved it out of variables.h. Just a drop in the bucket, but it is a start 2006-03-29 19:00:56 +00:00
Darkvater 8560265953 (svn r4142) - Fix [FS#74]: Incorrectly loaded settings from the config file when the signed uint32 variable would be negative. 2006-03-28 21:51:14 +00:00
peter1138 38a0ef3bc6 (svn r4126) - Feature: A new multi-lingual multi-measuring-unit system:
- Replace miles/kilometres game option with a general measuring units option.
  - Add {POWER}, {WEIGHT}, {WEIGHT_S} and {VOLUME_S} (_S for short) tags to the language/string system.
  - Add SI as option for measuring units.
  Language file updates to use the system will come soon.
2006-03-26 21:50:57 +00:00
Darkvater 44b9917518 (svn r3997) - Default the patch-setting 'pause_on_join' to true. 2006-03-21 21:07:50 +00:00
Darkvater af2b4ddf97 (svn r3930) - [Patches] Change the GUI-patch options from indeces to string representations. Not only makes this the part more humanly readable, but saves us from rewriting the whole index when a patch is added/removed/changed 2006-03-17 22:47:52 +00:00
Darkvater 1536477fad (svn r3926) - [Patches]: Switched string for ship and aircraft replacement, and also forgot to put back the callback function. Thanks Tron 2006-03-17 20:56:51 +00:00
Darkvater 47b0e29a56 (svn r3924) - Revert r3923, apparently we are not fond of CONDNULL() structs :) 2006-03-17 19:52:12 +00:00
Darkvater 14f1d0f0a4 (svn r3923) - [Pathces/HACK]: Add 32 empty bytes at the end of the patches chunk in the savegame to not to have to increase the savegame version every time we add one; at least for a while. To not break in-between nightlies a temporary hack is done. So make sure to upgrade to this nightly before you upgrade to newer ones. Releases are unaffected 2006-03-17 18:54:42 +00:00
Darkvater d8677f1afa (svn r3915) - Savegame version 23: Do not save the autosave interval anymore with savegames. Some people should be very happe atm ;) 2006-03-17 08:06:56 +00:00
Darkvater 583a52bd6f (svn r3914) - Properly implement SDT(G)_CONDNULL macro's without special cases (add flag SLF_CONFIG_NO and empty string as name) 2006-03-17 08:01:54 +00:00
Darkvater 537b7ed3c6 (svn r3896) - [Patches] Fix: Honour any conditional settings when retrieving the setting entries. 2006-03-16 00:22:36 +00:00
Darkvater d9ee10d3b8 (svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
- Also add this capability to settings
2006-03-16 00:20:33 +00:00
Darkvater 4689031f19 (svn r3880) - just do a string compare without length restrictions; followup for r3875 2006-03-15 12:37:59 +00:00
Darkvater cd1dea52ca (svn r3875) - [Patches] Fix up the intro menu so the right values for the mapsize are shown (the default ones). Setting the value involves a small hack in that we also set the _patches value because that is used for world-generation and only inside there do the values get copied from _newgame
- [Patches] Fix a stupid, stupid bug where I used sizeof() as length instead of strlen() in getting console values for patches.
2006-03-14 22:58:46 +00:00
Darkvater 37b301ba3a (svn r3854) - Fix restart_game_date to default to zero and allow a value of 0 which got screwed up during the patch-rewrite. Thanks peter1138 2006-03-13 23:20:24 +00:00