Commit Graph

2328 Commits

Author SHA1 Message Date
skidd13 5c31a973a1 (svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style 2007-11-19 21:32:20 +00:00
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 2007-11-19 21:02:30 +00:00
skidd13 58bb5c7525 (svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
skidd13 d076ea8697 (svn r11479) -Codechange: Move the BIGMUL functions to the file of their usage
-Codechange: Rename the BIGMUL functions to the fitting naming style
2007-11-19 20:18:27 +00:00
rubidium e815dae3c6 (svn r11478) -Fix: two small layout issues with the vehicle grouping GUI. 2007-11-19 19:54:23 +00:00
rubidium a4df4728fc (svn r11477) -Fix [FS#1451]: a road vehicle must not show that it is driving max speed when it is standing still waiting for the vehicle in from of it. 2007-11-19 18:58:32 +00:00
skidd13 50bfe1a19d (svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define 2007-11-19 18:58:04 +00:00
skidd13 8be526e499 (svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style 2007-11-19 18:38:10 +00:00
belugas 006acff183 (svn r11474) -Feature: Allow to resize on creation the smallmap gui in order to show all the types industry available.
-Feature: Allow to enable/disable individually or all at once, the industries shown on small map.
This will permit to easily find those that are of some interest for the player.
Heavily based on gule's patch
2007-11-19 04:34:40 +00:00
belugas fb0674ee2b (svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values 2007-11-19 01:16:53 +00:00
belugas 51bb4a9dc8 (svn r11472) -Codechange: Give enuma for both the widget numbers and the used smallmap currently used type 2007-11-19 00:57:56 +00:00
smatz 2686901d84 (svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode 2007-11-18 23:13:53 +00:00
rubidium e15a5365d1 (svn r11467) -Fix [FS#1450]: OpenBSD has ALIGN already defined, causing compilation failures. 2007-11-18 20:21:41 +00:00
smatz 96d156944f (svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases 2007-11-18 20:10:07 +00:00
smatz cd3c16d789 (svn r11465) -Fix: more user-friedly placement in X and Y directions (most noticeable with autoroad) 2007-11-18 20:05:44 +00:00
rubidium 92e0bf68e3 (svn r11464) -Fix: some issue that made OpenTTD on MorphOS seriously unplayable. 2007-11-18 18:28:32 +00:00
rubidium dc81ea6454 (svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do. 2007-11-18 16:41:25 +00:00
rubidium b1393d1169 (svn r11461) -Fix [FS#1449] (r11449): a bus turning around in a station could case an assertion error. Patch by divide. 2007-11-18 15:06:01 +00:00
skidd13 afbd03b49c (svn r11459) -Fix: (r11457) The selection highlight color hasn't been reset 2007-11-18 14:39:43 +00:00
skidd13 9737bf20c0 (svn r11457) -Fix: (r11455) Reenable the accidentaly removed one way roads option
-Change: Enable one way roads like the remove via a toolbar icon
2007-11-18 13:55:23 +00:00
smatz b48c5a3c92 (svn r11456) -Fix [FS#1412] (r10070): Viewport is bound to its top-left corner 2007-11-18 13:13:59 +00:00
rubidium 5b21a839a9 (svn r11455) -Codechange: make autoroad, 'normal' road building and 'normal' rail building all react the same on CTRL as autorail. 2007-11-18 08:03:48 +00:00
rubidium 80a7a91730 (svn r11454) -Fix: the CHANCE16 functions were biased; a 32768 in 65536 chance was really a 32769 in 65536 chance. 2007-11-17 23:16:41 +00:00
glx 32202be452 (svn r11453) -Fix (r11450): unrevert r11239, as we now need it 2007-11-17 22:33:53 +00:00
rubidium 7305a1f1fe (svn r11452) -Change: do not allow configuration changes, that NewGRFs can directly use to change their behaviour, during network games as this can cause desyncs. 2007-11-17 22:25:16 +00:00
rubidium 2e8d37dcdf (svn r11451) -Fix [FS#1287]: very fast aircraft would sometimes abruptly stop at the begin of the landing runway, turn a few times and then drive slowly to the end of the runway. 2007-11-17 15:04:38 +00:00
glx f22ed6f85e (svn r11450) -Fix [FS#1432](r8886): cargo translation table was loaded too early 2007-11-17 15:03:19 +00:00
rubidium ef6c4c1cdf (svn r11449) -Fix [FS#1160]: trams could deadlock themselves. As of now trams will turn as roadvehicles do when the player cannot build a tram track piece on the next tile without destroying anything. It will not turn when the player can build the before mentioned track piece on the 'next' tile. 2007-11-17 12:42:15 +00:00
belugas 8b86e9b14d (svn r11447) -Fix(r11433): Wrong offset to the helipad made it look like the autoroad button 2007-11-17 01:55:00 +00:00
skidd13 9b4252bd62 (svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
-Change: invert the two single roads gui buttons, making it consistent with rails toolbar
Based on a patch by Octopussy
2007-11-17 01:10:06 +00:00
miham 6043f91760 (svn r11444) -Update: WebTranslator2 update to 2007-11-16 08:21:07
czech      - 1 changed by Hadez (1)
estonian   - 1 fixed by kristjans (1)
french     - 10 changed by glx (10)
italian    - 3 fixed, 1 changed by lorenzodv (4)
japanese   - 1 fixed by ickoonite (1)
slovenian  - 1 fixed by Necrolyte (1)
swedish    - 4 fixed, 4 changed by daishan (8)
2007-11-16 07:21:44 +00:00
glx 0b4df07f27 (svn r11443) -Fix: [NewGRF] Action 0 <id> is an extended byte 2007-11-16 02:25:56 +00:00
rubidium 4dcd71038d (svn r11442) -Feature: make news messages related to the industry (production) changes better configurable; you can now disable news messages popping up for industries you are not servicing. Patch by Alberth. 2007-11-15 22:20:33 +00:00
rubidium 70c7a44a4d (svn r11441) -Fix [FS#1443]: manage list dropdown menu did not "disappear" when the all vehicles are removed from the "current" group. 2007-11-15 19:18:52 +00:00
rubidium dace4686c0 (svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ. 2007-11-15 18:28:00 +00:00
rubidium 59a6e40ed2 (svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ. 2007-11-15 18:21:59 +00:00
rubidium 7faec2f54d (svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL. 2007-11-15 18:07:30 +00:00
rubidium 7f780cbabf (svn r11437) -Change: when sorting stations by cargo sum, only sum the cargos that are selected in the filter. Patch by divide. 2007-11-15 17:54:46 +00:00
rubidium 53e811ff29 (svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide. 2007-11-15 17:51:36 +00:00
rubidium 56b1317e70 (svn r11435) -Codechange: show all players who have shares, not just the first two. Patch by SmatZ. 2007-11-15 17:49:50 +00:00
miham 72542b1bce (svn r11434) -Fix: fixed a string in finnish (suggested by ln-) 2007-11-15 15:02:42 +00:00
rubidium f546de602b (svn r11433) -Fix: starting OpenTTD with DOS files made it look weird out of the box.
-Change: make extra sprites (the ones not in the TTD GRFs) replaceable using Action 5.
-Feature: make replacing contiguous subsets of sprites in for some types possible in Action 5.
Note to GRF authors: when you replaced OpenTTD sprites that are not from the TTD GRF files using Action A, your GRF will not have the intended result anymore as the sprite numbers have changed. You should replace the Action A with an Action 5 from now on.
2007-11-15 07:42:25 +00:00
glx f28723830f (svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle user-defined bit mask (prop 25) via callback 36 2007-11-15 00:13:12 +00:00
rubidium f0915957d4 (svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash... 2007-11-13 22:44:41 +00:00
glx 9c94aae30f (svn r11429) -Fix (r11129): some TextID to StringID 'translations' didn't follow our format 2007-11-13 18:57:38 +00:00
glx a6a7b905af (svn r11428) -Fix: wrong string used for candy/sweets units_volume 2007-11-13 18:38:36 +00:00
belugas a0d0dcb78d (svn r11427) -Fix: Forgot to Truncate the string "Many Random Industries" in the funding industry window. In some languages, it gets drawn outside of the gui. 2007-11-13 15:41:09 +00:00
belugas 7d9d4e789b (svn r11426) -Codechange: Just one boolean inversion instead of two 2007-11-13 03:34:24 +00:00
glx de47054936 (svn r11425) -Fix [FS#1424]: overriden industries were ignored when mapping newgrf industry type to 'real' industry type 2007-11-12 20:57:03 +00:00
glx 9cee4e91cb (svn r11424) -Fix: an override can be set only once 2007-11-12 20:42:35 +00:00
glx de4e9cdc9c (svn r11423) -Codechange: store grfid when adding an override 2007-11-12 20:40:58 +00:00
rubidium eb47b106ac (svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing. 2007-11-12 20:05:12 +00:00
rubidium 8752519896 (svn r11421) -Fix [FS#1431]: do not use a function that asserts when wrapping around the map's edge when you use the wrapping (and MP_VOID tiles) to determine whether the bridge can be build. 2007-11-12 19:21:33 +00:00
rubidium 9d85d9d41f (svn r11420) -Fix [FS#1006]: industry closure news not properly shown when the news item pops up after the industry has been removed from the map. 2007-11-12 18:32:04 +00:00
rubidium 04925c3f12 (svn r11419) -Fix [FS#1388]: articulated vehicle breaking up when making a 90 degree turn immediately after a 180 degree turn. 2007-11-12 18:28:55 +00:00
glx 0660d2a3d6 (svn r11418) -Fix (r11416): forgot an instance 2007-11-12 01:38:32 +00:00
belugas 2571f02594 (svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed 2007-11-12 01:12:32 +00:00
belugas 3904640d02 (svn r11416) -Fix(r11411): For once, the warnings of MSVC are not useless. Inversion of the two parameters of DoTriggerHouse cause a complain which was legit, in this case 2007-11-12 01:05:35 +00:00
rubidium bfcf48e168 (svn r11415) -Fix [FS#1428]: do not ignore the autorenew settings for new games when creating a new game. 2007-11-11 21:05:50 +00:00
rubidium a11271e574 (svn r11414) -Fix [FS#1387]: when building a station, even though we already 'know' it in memory, it should still be unknown in the realm of callbacks. 2007-11-11 20:24:32 +00:00
glx 80b9e0bc5b (svn r11413) -Fix [FS#1405]: don't use cached override spriteset for callbacks 2007-11-11 18:32:01 +00:00
rubidium 21c02fee87 (svn r11412) -Fix (r11403): animation was not turned on properly.
-Fix (r11410): wrong assumption about random reseeds made the whole thing reseed way too often, making the animation look very ugly.
2007-11-11 18:22:06 +00:00
rubidium 9758a76512 (svn r11411) -Codechange: implement random triggers for houses. 2007-11-11 17:58:05 +00:00
rubidium af5c2a785f (svn r11410) -Codechange: implement random triggers for industries. 2007-11-11 17:56:37 +00:00
truelight f6dda29549 (svn r11409) -Update: as of now, I am a retired Developer, so mark me as such 2007-11-11 14:32:18 +00:00
rubidium 7c67950765 (svn r11408) -Fix [FS#1422]: do not do a 270 degree turn when 90 degrees is enough on a commuter airport. 2007-11-11 13:04:51 +00:00
truelight 8b3e278897 (svn r11407) -Fix: do not allow building of tram-tracks when they are not available (SmatZ) 2007-11-11 12:34:44 +00:00
rubidium fe24593692 (svn r11406) -Fix: wrong triggers would be activated on callback 32 for vehicles. 2007-11-11 12:29:47 +00:00
truelight d8d0babece (svn r11405) -Fix: in rare cases OpenTTD could segfault when resizing and scroll the main window (Rafal Rzepecki) 2007-11-11 12:26:44 +00:00
belugas 592b0c4e51 (svn r11404) -Codechange: remove 2 magical numbers 2007-11-11 01:39:15 +00:00
rubidium d32604d59e (svn r11403) -Fix: NewIndustries GRF assume that tiles are already animated during construction. 2007-11-11 00:53:59 +00:00
glx 63b36d9330 (svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must be in town with population large than 1200' 2007-11-11 00:04:52 +00:00
rubidium 2e44d2aedb (svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=. 2007-11-10 23:22:32 +00:00
rubidium 3a8cdc37ce (svn r11400) -Fix [FS#1409]: assign orders during cloning after refitting as it needs the cargo types to be the same. 2007-11-10 22:56:43 +00:00
belugas f55fdfb7c4 (svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only.  The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
2007-11-10 01:17:15 +00:00
glx 3a84801f55 (svn r11398) -Fix [FS#1414]: industry variables 67 and 68 return was incorrect 2007-11-10 00:42:25 +00:00
truelight e4aec527e0 (svn r11397) -Fix r11395: some minor fixes for better town-bridge results (and better comments) (skidd13 / TrueLight) 2007-11-09 13:21:48 +00:00
truelight 2493626f21 (svn r11396) -Fix: GCC 3.3 doesn't like 'static bool inline', should of course be 'static inline bool' (SmatZ) 2007-11-09 11:22:17 +00:00
truelight 71f443cbdc (svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki) 2007-11-09 11:20:36 +00:00
glx 3e8493c851 (svn r11394) -Fix: default value for input cargo multipliers is 256 even for invalid cargo. Exceptions are temperate banks and oil rigs, default value is 0 for them 2007-11-08 22:29:21 +00:00
belugas dda3793eb9 (svn r11392) -Codechange: Remove some MSVC warnings by removing boolean typecast that can be avoided by using HASBIT instead.
Although the code is old (r2817), it is the recent changes made in macros.h that brough it up.
2007-11-08 16:09:04 +00:00
rubidium 32e5e8db72 (svn r11391) -Change: print all error messages related to missing/corrupted files in one message including the location where they can get said missing/corrupted files. 2007-11-07 23:29:43 +00:00
truelight 4bcca42762 (svn r11390) -Fix r11387: AB() was wrong (spotted by Rafal Rzepecki, patch by skidd13) 2007-11-07 22:41:50 +00:00
egladil cd5597dddf (svn r11389) -Fix [FS#1386]: Replace calls to deprecated API with newer ones and handle broken iconv declaration in OSX 10.5. 2007-11-07 21:35:33 +00:00
truelight 0154541982 (svn r11388) -Fix: postfix ++ returned new value, should (ofcourse) be old value (SmatZ)
-Fix: prefix ++ didn't exist, added it
2007-11-07 14:33:52 +00:00
truelight 6104d33ef1 (svn r11387) -Codechange: changed many macros.h #defines to static inline functions (patch by skidd13, with a big tnx to SmatZ for profiling!) 2007-11-06 23:21:08 +00:00
miham 71fa86dee7 (svn r11386) -Update: WebTranslator2 update to 2007-11-05 19:07:09
afrikaans  - 24 changed by TrueTenacity (24)
brazilian_portuguese - 1 fixed by tucalipe (1)
czech      - 1 fixed by Hadez (1)
dutch      - 1 fixed by habell (1)
norwegian_bokmal - 4 fixed, 43 changed by jhsoby (47)
turkish    - 28 fixed by jnmbk (28)
2007-11-05 18:07:49 +00:00
truelight 9f319318b4 (svn r11385) -Fix r11383: bool operation can be hard to translate for some people ;) (tnx fjb for noticing this bug ;)) 2007-11-05 17:50:10 +00:00
glx 1626ff3948 (svn r11384) -Fix: second and third accepted cargo were inverted in original industry tiles 2007-11-05 01:38:49 +00:00
truelight 4b8aaa994c (svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13) 2007-11-04 23:06:39 +00:00
truelight 69b1d97c03 (svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13) 2007-11-04 22:47:34 +00:00
glx 3517ee6d54 (svn r11381) -Fix [FS#1227]: redo the fix in a less breaking way 2007-11-04 22:24:03 +00:00
glx 6c9617b4ae (svn r11380) -Revert (r11191, r11196): it worked, but broke cargo loading 2007-11-04 22:21:46 +00:00
truelight 508c13d1f9 (svn r11379) -Fix r11378: KillFirstBit2x64 accepts and returns unsigned variables, not signed, so enforce that a bit 2007-11-04 18:32:51 +00:00
truelight 038817a708 (svn r11378) -Codechange: optimize KillFirstBit2x64 (skidd13) 2007-11-04 18:28:52 +00:00
truelight 525d239bc2 (svn r11377) -Codechange: some more strictness in macros.h (skidd13) 2007-11-04 17:43:53 +00:00
rubidium 6fe2b0b3b2 (svn r11376) -Fix: fill the town a oil rig is associated with before creating the name, otherwise every oil rig will become "<TOWN> Oilrig" which effectively means that there can be several oil rigs with exactly the same name. 2007-11-04 11:46:01 +00:00
rubidium 91af1d6bca (svn r11375) -Fix [FS#1397]: the industry recolour map was always applied when recolouring was turned on, instead of only applying it when the colour translation is '0'. 2007-11-04 11:28:36 +00:00
belugas 56e6282f2f (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
2007-11-04 00:08:57 +00:00
rubidium 9e69fc8114 (svn r11373) -Fix [FS#1398]: do not even think about building disabled industries. 2007-11-03 23:34:12 +00:00