------------------------------------------------------------------------ r6122 | tron | 2006-08-25 12:58:52 +0000 (Fri, 25 Aug 2006) | 1 line Fix an off-by-two error in r6108: it should be the index for the last element in the array ------------------------------------------------------------------------ r6117 | truelight | 2006-08-25 12:26:34 +0000 (Fri, 25 Aug 2006) | 4 lines -Fix r6097: on mingw it is normal that both / as \ are accepted as input -Fix r6096: detect for PATHSEP on WIN32 or WIN64, not UNIX (Windows compilers define either one, while other compilers don't define a thing) ------------------------------------------------------------------------ r6114 | miham | 2006-08-25 08:49:32 +0000 (Fri, 25 Aug 2006) | 5 lines WebTranslator2 update to 2006-08-25 10:49:08 american - 84 fixed by WhiteRabbit (84) german - 3 fixed, 2 changed by chu (5) portuguese - 2 fixed by izhirahider (2) ------------------------------------------------------------------------ r6108 | belugas | 2006-08-25 00:41:10 +0000 (Fri, 25 Aug 2006) | 8 lines -NewGRF Feature: Implement currencies replacment via grf file. All properties can now be modified i.e: Introduction date for euro conversion Currency name, decimal separator, currency symbol (before or after amount) and the rate compared to the base currency, the british pound ------------------------------------------------------------------------ r6107 | belugas | 2006-08-25 00:35:11 +0000 (Fri, 25 Aug 2006) | 3 lines -Fix r6089: add STRGEN preprocessor flag and string.c to strgen vs 80 project Carbon copy of Darkvater's r6105 ------------------------------------------------------------------------ r6105 | Darkvater | 2006-08-24 22:52:58 +0000 (Thu, 24 Aug 2006) | 1 line -Fix r6089: add STRGEN preprocessor flag and string.c to strgen project ------------------------------------------------------------------------ r6104 | rubidium | 2006-08-24 22:04:24 +0000 (Thu, 24 Aug 2006) | 3 lines -Fix: make install did not create a directory for the heightmaps -Fix: make install should not copy scenario as it is an empty map ------------------------------------------------------------------------ r6098 | truelight | 2006-08-24 15:39:17 +0000 (Thu, 24 Aug 2006) | 2 lines -Fix 6097: stupid me.... CHARS! Not strings, for strrchr :( ------------------------------------------------------------------------ r6097 | truelight | 2006-08-24 15:36:25 +0000 (Thu, 24 Aug 2006) | 2 lines -Fix: mingw and cygwin get / from Makefile, where \ is expected. Make exeption code for it (tnx for debug Frostregen) ------------------------------------------------------------------------ r6096 | truelight | 2006-08-24 15:21:09 +0000 (Thu, 24 Aug 2006) | 2 lines -Fix: silence a warning on mingw (tnx Frostregen) ------------------------------------------------------------------------ r6089 | truelight | 2006-08-24 12:08:25 +0000 (Thu, 24 Aug 2006) | 2 lines -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater) ------------------------------------------------------------------------ r6086 | rubidium | 2006-08-24 10:19:59 +0000 (Thu, 24 Aug 2006) | 2 lines -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting. ------------------------------------------------------------------------ r6084 | truelight | 2006-08-24 10:11:32 +0000 (Thu, 24 Aug 2006) | 2 lines -Fix r6073: if we removed MSVC6 support, then why is unittest.dsp still around... ------------------------------------------------------------------------ r6083 | miham | 2006-08-24 08:19:30 +0000 (Thu, 24 Aug 2006) | 5 lines WebTranslator2 update to 2006-08-24 10:19:06 german - 3 fixed, 1 changed by chu (4) slovak - 82 fixed, 2 changed by lengyel (84) turkish - 3 fixed by jnmbk (3) ------------------------------------------------------------------------ r6082 | belugas | 2006-08-24 01:25:00 +0000 (Thu, 24 Aug 2006) | 3 lines -CodeChange : Remove the unneeded table/sprites.h include in newgrf_cargo.h. Set it in genworld_gui.c instead, as it is really needed ------------------------------------------------------------------------ r6081 | belugas | 2006-08-23 23:23:14 +0000 (Wed, 23 Aug 2006) | 1 line -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey) ------------------------------------------------------------------------ r6079 | glx | 2006-08-23 20:53:53 +0000 (Wed, 23 Aug 2006) | 1 line -Change: size and alignment of random seed input box and randomise button ------------------------------------------------------------------------ r6078 | truelight | 2006-08-23 20:46:54 +0000 (Wed, 23 Aug 2006) | 2 lines -Fix: forgot one uint16 -> Date conversion. Tnx to #openttdcoop team for detecting and Rubidium for finding the cause. ------------------------------------------------------------------------ r6076 | miham | 2006-08-23 19:58:17 +0000 (Wed, 23 Aug 2006) | 4 lines WebTranslator2 update to 2006-08-23 21:57:55 french - 2 changed by glx (2) portuguese - 26 fixed, 3 changed by izhirahider (29) ------------------------------------------------------------------------ r6073 | Darkvater | 2006-08-23 18:22:11 +0000 (Wed, 23 Aug 2006) | 1 line -We have removed MSVC6 support, so remove strgen and langs project files as well. ------------------------------------------------------------------------ r6068 | matthijs | 2006-08-23 15:30:03 +0000 (Wed, 23 Aug 2006) | 2 lines -Codechange: Switch PNG and BMP priority for screenshots. This ensures PNG is used by default when available. (hylje) ------------------------------------------------------------------------ r6064 | miham | 2006-08-23 13:55:56 +0000 (Wed, 23 Aug 2006) | 5 lines WebTranslator2 update to 2006-08-23 15:55:27 french - 5 fixed by belugas (4), glx (1) german - 26 fixed, 5 changed by chu (31) turkish - 23 fixed by jnmbk (23) ------------------------------------------------------------------------ r6059 | glx | 2006-08-22 22:59:42 +0000 (Tue, 22 Aug 2006) | 1 line -Fix(r6049): FOR_ALL was not use to not skip invalid items, so really don't skip invalid items :) ------------------------------------------------------------------------ r6058 | truelight | 2006-08-22 21:17:19 +0000 (Tue, 22 Aug 2006) | 3 lines -Fix: Get(Industry|Town)ArraySize could never return 0 Note: _total_towns and _total_industries willb e removed soon, so this 'hack' is okay, for now ;) ------------------------------------------------------------------------ r6057 | truelight | 2006-08-22 21:14:45 +0000 (Tue, 22 Aug 2006) | 2 lines -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned. ------------------------------------------------------------------------ r6056 | truelight | 2006-08-22 20:56:08 +0000 (Tue, 22 Aug 2006) | 2 lines -Codechange: don't use a loop what can be done with a simple wrapper ------------------------------------------------------------------------ r6055 | truelight | 2006-08-22 20:41:26 +0000 (Tue, 22 Aug 2006) | 4 lines -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that). It isn't the best name, but we couldn't find any better. This unifies the pool-system even more. ------------------------------------------------------------------------ r6054 | tron | 2006-08-22 20:39:18 +0000 (Tue, 22 Aug 2006) | 3 lines Change the sign sorter in a similar way as the other sorters: Remember a list of pointers to signs instead of a list of SignIDs - This removes a layer of indirection Also make the sign list static ------------------------------------------------------------------------ r6053 | truelight | 2006-08-22 18:15:17 +0000 (Tue, 22 Aug 2006) | 5 lines -Codechange: renamed all IsXXXIndex to IsValidXXXID -Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range Both changes again in preperation of the new mem-pool system, which requires this. IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system ------------------------------------------------------------------------ r6052 | truelight | 2006-08-22 17:13:49 +0000 (Tue, 22 Aug 2006) | 4 lines -Codechange: change OrderType (order->type) in a typedef -Codechange: renamed DeleteDestinationFromVehicleOrder to RemoveOrderFromAllVehicles to reflect his function better -Codechange: changed the params of RemoveOrderFromAllVehicles, to avoid unneeded variable-creation ------------------------------------------------------------------------ r6051 | truelight | 2006-08-22 16:59:51 +0000 (Tue, 22 Aug 2006) | 2 lines -Fix r6047: forgot many times a ! :( ------------------------------------------------------------------------ r6050 | truelight | 2006-08-22 16:38:50 +0000 (Tue, 22 Aug 2006) | 2 lines -Codechange: mass-renamed SignStruct -> Sign and ss -> si. Now functions and variables all match eachother ------------------------------------------------------------------------ r6049 | truelight | 2006-08-22 16:22:07 +0000 (Tue, 22 Aug 2006) | 5 lines -Codechange: forgot EngineRenew in r6047 -Codechange: cleaned up the EngineRenew code a bit (coding style mostly) -Codechange: forgot the correct comment in station_cmd -Codechange: move pool-stuff to engine.h, like we always do ------------------------------------------------------------------------ r6048 | truelight | 2006-08-22 15:39:22 +0000 (Tue, 22 Aug 2006) | 2 lines -Codechange: all InitializeXXX are plural, just not Depot ------------------------------------------------------------------------ r6047 | truelight | 2006-08-22 15:33:35 +0000 (Tue, 22 Aug 2006) | 7 lines -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS#13 by blathijs, partly implemented. ------------------------------------------------------------------------ r6046 | belugas | 2006-08-22 15:23:25 +0000 (Tue, 22 Aug 2006) | 4 lines CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered label CodeChange : Move almost all fixed strings from ON_PAINT event to Widget array using WWT_LABEL. Feature : All "Select Refit Cargo" are now centered, instead of been left aligned ------------------------------------------------------------------------ r6045 | rubidium | 2006-08-22 14:38:37 +0000 (Tue, 22 Aug 2006) | 2 lines -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct. ------------------------------------------------------------------------ r6044 | miham | 2006-08-22 13:57:51 +0000 (Tue, 22 Aug 2006) | 5 lines WebTranslator2 update to 2006-08-22 15:57:27 danish - 13 fixed by Bjarni (3), trenskow (10) french - 1 fixed by glx (1) hungarian - 1 fixed by miham (1) ------------------------------------------------------------------------ r6043 | truelight | 2006-08-22 12:15:51 +0000 (Tue, 22 Aug 2006) | 2 lines -Codechange: use wrapper if they are available ------------------------------------------------------------------------ r6042 | miham | 2006-08-21 21:49:44 +0000 (Mon, 21 Aug 2006) | 6 lines WebTranslator2 update to 2006-08-21 23:49:18 french - 2 fixed by glx (2) german - 49 fixed by chu (49) polish - 1 fixed by meush (1) portuguese - 3 fixed by izhirahider (3) ------------------------------------------------------------------------ r6041 | truelight | 2006-08-21 18:18:02 +0000 (Mon, 21 Aug 2006) | 2 lines -Fix r6040: forgot to declare a function in viewport.c ------------------------------------------------------------------------ r6040 | truelight | 2006-08-21 17:41:04 +0000 (Mon, 21 Aug 2006) | 4 lines -Add: when clicking twice on a Location Button, the SmallMap centers on your position (based on FS#54 by thomasdev) -Add: when clicking twice in SmallMap on a position, it centers there (based on FS#54 by thomasdev) -Add: add a button in SmallMap that centers the SmallMap on your current position (based on FS#54 by thomasdev) ------------------------------------------------------------------------ r6039 | bjarni | 2006-08-21 16:35:47 +0000 (Mon, 21 Aug 2006) | 3 lines -Fix: [newGRF] FS#287 Bugfix for error in NewGRF callback 31 code for aircraft (Mart3p) introduced in rev 5822 ------------------------------------------------------------------------ r6038 | truelight | 2006-08-21 14:59:58 +0000 (Mon, 21 Aug 2006) | 3 lines -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that -Codechange: use always 'e' for WindowsEvent, neverr 'we' ------------------------------------------------------------------------ r6037 | truelight | 2006-08-21 14:59:23 +0000 (Mon, 21 Aug 2006) | 2 lines -Fix: never allow scrolling the map in the main menu (scroll-settings weren't reset if switched to mainmenu) ------------------------------------------------------------------------ r6036 | truelight | 2006-08-21 14:34:59 +0000 (Mon, 21 Aug 2006) | 2 lines -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this. ------------------------------------------------------------------------ r6035 | Darkvater | 2006-08-21 13:04:13 +0000 (Mon, 21 Aug 2006) | 1 line -Revert r5900 which supposedly fixed an invalid warning caused by buggy MS software ------------------------------------------------------------------------ r6032 | truelight | 2006-08-21 09:22:44 +0000 (Mon, 21 Aug 2006) | 2 lines -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that) ------------------------------------------------------------------------ r6023 | miham | 2006-08-20 21:53:56 +0000 (Sun, 20 Aug 2006) | 5 lines WebTranslator2 update to 2006-08-20 23:53:33 german - 1 fixed by Neonox (1) polish - 2 fixed, 2 changed by meush (4) portuguese - 2 fixed by izhirahider (2) ------------------------------------------------------------------------ r6013 | rubidium | 2006-08-20 20:21:00 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix: some newgrf properties returned the date in the new format where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch. ------------------------------------------------------------------------ r6005 | rubidium | 2006-08-20 19:31:58 +0000 (Sun, 20 Aug 2006) | 3 lines -Cleanup: introduce IndustryID and use it -Cleanup: use TownID and StationID for two instances of uint16 ------------------------------------------------------------------------ r6002 | rubidium | 2006-08-20 19:05:28 +0000 (Sun, 20 Aug 2006) | 2 lines -Cleanup: remove the now redundant BASE_YEAR constant. ------------------------------------------------------------------------ r6001 | truelight | 2006-08-20 18:44:26 +0000 (Sun, 20 Aug 2006) | 3 lines -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82) To make this to work, in older games farmland is removed on load, and replanted ------------------------------------------------------------------------ r6000 | miham | 2006-08-20 18:43:43 +0000 (Sun, 20 Aug 2006) | 7 lines WebTranslator2 update to 2006-08-20 20:43:15 danish - 24 fixed, 1 changed by Bjarni (25) hungarian - 2 fixed by miham (2) polish - 2 fixed, 3 changed by meush (5) portuguese - 3 fixed by izhirahider (3) turkish - 54 fixed by jnmbk (54) ------------------------------------------------------------------------ r5999 | rubidium | 2006-08-20 18:40:57 +0000 (Sun, 20 Aug 2006) | 5 lines -Feature: change the original date format to a 32 bits format based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet. ------------------------------------------------------------------------ r5993 | truelight | 2006-08-20 17:22:03 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix r5974: a cause-no-warning commit caused a warning ;) (glx) ------------------------------------------------------------------------ r5978 | truelight | 2006-08-20 13:48:04 +0000 (Sun, 20 Aug 2006) | 2 lines -Add: allow a switch in Makefile.config to disable threads in OpenTTD (no matter what system you are on). Only useful for testing. ------------------------------------------------------------------------ r5977 | truelight | 2006-08-20 13:39:33 +0000 (Sun, 20 Aug 2006) | 4 lines -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with dualcore can be faster then you want, and therefor create 2 threads, while you made the bool to make sure there is never more then 1 thread of this type. ------------------------------------------------------------------------ r5975 | rubidium | 2006-08-20 12:39:17 +0000 (Sun, 20 Aug 2006) | 4 lines -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format. -Cleanup: use DAYS_TILL_ORIGINAL_BASE_YEAR where the date variables are in the old date format and conversions are needed. -Cleanup: replace one (forgotten) instance of uint16 with Date. ------------------------------------------------------------------------ r5974 | truelight | 2006-08-20 12:09:32 +0000 (Sun, 20 Aug 2006) | 2 lines -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc) ------------------------------------------------------------------------ r5973 | truelight | 2006-08-20 12:07:27 +0000 (Sun, 20 Aug 2006) | 2 lines -Codechange: md5_append only uses size_t as nbytes param, so use that (michi_cc) ------------------------------------------------------------------------ r5972 | truelight | 2006-08-20 12:03:39 +0000 (Sun, 20 Aug 2006) | 3 lines -Fix: usr strrchr instead of your own function (tnx Darkvater) -Codechange: added some comments and const correctness (Darkvater) ------------------------------------------------------------------------ r5971 | truelight | 2006-08-20 11:51:10 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix: wrong struct in assert_compile (thomasdev) ------------------------------------------------------------------------ r5970 | truelight | 2006-08-20 11:41:34 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix [FS#49]: town-growth removed houses under construction to make way for road. Not wanted behavoir (Rubidium) ------------------------------------------------------------------------ r5969 | truelight | 2006-08-20 11:18:46 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix r5968: windows doesn't know strncasecmp, but called it strnicmp (michi_cc) ------------------------------------------------------------------------ r5968 | truelight | 2006-08-20 10:51:27 +0000 (Sun, 20 Aug 2006) | 3 lines -Feature: add auto-completion in chat-window. It completes Player-Names and Town-Names (that order) using . Based on FS#28 by egladil. ------------------------------------------------------------------------ r5967 | rubidium | 2006-08-20 10:50:23 +0000 (Sun, 20 Aug 2006) | 2 lines -Change: use right alignment for the year in the player's balance window instead of centering (about) 'string width' / 2 from the right edge ------------------------------------------------------------------------ r5966 | rubidium | 2006-08-20 10:45:36 +0000 (Sun, 20 Aug 2006) | 2 lines -Fix: prevent that the industry placement's terraforming checks can leave the map on the southern side ------------------------------------------------------------------------ r5965 | bjarni | 2006-08-20 09:52:15 +0000 (Sun, 20 Aug 2006) | 2 lines -Feature: FS#261 Catalan Town Names generator (arnau) ------------------------------------------------------------------------ r5964 | bjarni | 2006-08-20 09:26:58 +0000 (Sun, 20 Aug 2006) | 2 lines -Feature: FS#131 Slovenian currency (MeusH) ------------------------------------------------------------------------ r5963 | miham | 2006-08-20 07:04:04 +0000 (Sun, 20 Aug 2006) | 4 lines WebTranslator2 update to 2006-08-20 09:03:43 french - 7 changed by glx (7) polish - 77 fixed, 18 changed by meush (95) ------------------------------------------------------------------------ r5959 | glx | 2006-08-19 21:30:40 +0000 (Sat, 19 Aug 2006) | 1 line -Change: size selection dropdowns placement in 'Scenario type' window ------------------------------------------------------------------------ r5955 | truelight | 2006-08-19 19:45:04 +0000 (Sat, 19 Aug 2006) | 4 lines -Fix r5728: 2 very important lines for ShowQueryString where removed by excident. Because of this you couldn't join servers with passwords, and more of those problems. (tnx Mucht) ------------------------------------------------------------------------ r5954 | miham | 2006-08-19 18:19:41 +0000 (Sat, 19 Aug 2006) | 8 lines WebTranslator2 update to 2006-08-19 20:17:26 dutch - 54 fixed by webfreakz (54) french - 74 fixed by glx (74) hungarian - 79 fixed by miham (79) norwegian - 2 fixed by oletk (2) polish - 1 changed by meush (1) portuguese - 15 fixed by izhirahider (15) ------------------------------------------------------------------------ r5953 | truelight | 2006-08-19 16:33:10 +0000 (Sat, 19 Aug 2006) | 2 lines -Fix: tooltip for FlatLand had wrong color (tnx glx) ------------------------------------------------------------------------ r5952 | tron | 2006-08-19 16:30:05 +0000 (Sat, 19 Aug 2006) | 3 lines - struct GRFText{Entry,} are private to newgrf_text.c - use a variable size array instead of another malloc() ------------------------------------------------------------------------ r5951 | Darkvater | 2006-08-19 15:24:40 +0000 (Sat, 19 Aug 2006) | 1 line - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again. ------------------------------------------------------------------------ r5950 | truelight | 2006-08-19 12:01:04 +0000 (Sat, 19 Aug 2006) | 2 lines -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater) ------------------------------------------------------------------------ r5949 | truelight | 2006-08-19 11:50:34 +0000 (Sat, 19 Aug 2006) | 2 lines -Fix: vs80 project file was broken (tnx webfreakz) ------------------------------------------------------------------------ r5948 | truelight | 2006-08-19 11:28:41 +0000 (Sat, 19 Aug 2006) | 2 lines -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater) ------------------------------------------------------------------------ r5946 | truelight | 2006-08-19 10:00:30 +0000 (Sat, 19 Aug 2006) | 21 lines -Add: merged the TGP branch to mainline. TGP adds: - New optional landscape generator (TerraGenesis Perlin) - Load heightmaps (either BMP or PNG) - Progress dialog while generating worlds (no longer a 'hanging' screen) - New dialogs for NewGame, Create Scenario and Play Heightmap - Easier to configure your landscape - More things to configure (tree-placer, ..) - Speedup of world generation - New console command 'restart': restart the map EXACTLY as it was when you first started it (needs a game made after or with this commit) - New console command 'getseed': get the seed of your map and share it with others (of course only works with generated maps) - Many new, world generation related, things - Many internal cleanups and rewrites Many tnx to those people who helped making this: Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic) Many tnx to those who helped testing: Arnau, Bjarni, and tokai (alfabetic) And to all other people who helped testing and sending comments / bugs Stats: 673 lines changed, 3534 new lines, 79 new strings ------------------------------------------------------------------------ r5944 | truelight | 2006-08-19 09:31:22 +0000 (Sat, 19 Aug 2006) | 3 lines -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only allow certain patterns (like numbers only) ------------------------------------------------------------------------ r5943 | truelight | 2006-08-19 09:23:48 +0000 (Sat, 19 Aug 2006) | 4 lines -Merge TGP (part r5725): -Codechange: renamed Thread to OTTDThread, as Windows (who else) uses Thread in winbase.h, and starts complaining if you define it otherwise (with weird, undefined errors) (tnx Arnau and Rubidium) ------------------------------------------------------------------------