Commit Graph

2293 Commits

Author SHA1 Message Date
rubidium
c5a9fd4559 (svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ. 2007-11-15 18:21:59 +00:00
rubidium
f3c94c5830 (svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL. 2007-11-15 18:07:30 +00:00
rubidium
59afbb0344 (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
5bbb31a896 (svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide. 2007-11-15 17:51:36 +00:00
rubidium
a731bc5812 (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
18dacd34e5 (svn r11434) -Fix: fixed a string in finnish (suggested by ln-) 2007-11-15 15:02:42 +00:00
rubidium
af0616729a (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
9fcf6e7a43 (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
a46f502d5f (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
d4e8889d5f (svn r11429) -Fix (r11129): some TextID to StringID 'translations' didn't follow our format 2007-11-13 18:57:38 +00:00
glx
dac5cf2c59 (svn r11428) -Fix: wrong string used for candy/sweets units_volume 2007-11-13 18:38:36 +00:00
belugas
fecdeda7b1 (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
1ecb96b2c6 (svn r11426) -Codechange: Just one boolean inversion instead of two 2007-11-13 03:34:24 +00:00
glx
df71c4f289 (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
de7f58d5d4 (svn r11424) -Fix: an override can be set only once 2007-11-12 20:42:35 +00:00
glx
60ccc5bbce (svn r11423) -Codechange: store grfid when adding an override 2007-11-12 20:40:58 +00:00
rubidium
49b4aa32bb (svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing. 2007-11-12 20:05:12 +00:00
rubidium
14c092faad (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
2c000f1546 (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
abbde80e53 (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
14fe7a9fed (svn r11418) -Fix (r11416): forgot an instance 2007-11-12 01:38:32 +00:00
belugas
8e7111491c (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
542697a28a (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
1e3e5bf2cf (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
084ede9dca (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
8844bd6cde (svn r11413) -Fix [FS#1405]: don't use cached override spriteset for callbacks 2007-11-11 18:32:01 +00:00
rubidium
02a6debc11 (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
dcbd2fdfc7 (svn r11411) -Codechange: implement random triggers for houses. 2007-11-11 17:58:05 +00:00
rubidium
c1cf9f3396 (svn r11410) -Codechange: implement random triggers for industries. 2007-11-11 17:56:37 +00:00
truelight
dd6ef7ad49 (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
75b7ca42ae (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
58e5282e38 (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
6e31698150 (svn r11406) -Fix: wrong triggers would be activated on callback 32 for vehicles. 2007-11-11 12:29:47 +00:00
truelight
8725f2b857 (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
7501144775 (svn r11404) -Codechange: remove 2 magical numbers 2007-11-11 01:39:15 +00:00
rubidium
e463f5687d (svn r11403) -Fix: NewIndustries GRF assume that tiles are already animated during construction. 2007-11-11 00:53:59 +00:00
glx
df35372b9b (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
0c3364e241 (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
dd4720461b (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
f26a591e6c (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
466193c574 (svn r11398) -Fix [FS#1414]: industry variables 67 and 68 return was incorrect 2007-11-10 00:42:25 +00:00
truelight
b02337bbe0 (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
42180a8f4e (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
1ebfc21e7a (svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki) 2007-11-09 11:20:36 +00:00
glx
1502373441 (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
2edf7afa6c (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
153cba2ef3 (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
87295922cf (svn r11390) -Fix r11387: AB() was wrong (spotted by Rafal Rzepecki, patch by skidd13) 2007-11-07 22:41:50 +00:00
egladil
4e518e3ceb (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
f5024f8c91 (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
5d196f4ac6 (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
cfe2fb6f0a (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
c3c4c894dc (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
7131f6262d (svn r11384) -Fix: second and third accepted cargo were inverted in original industry tiles 2007-11-05 01:38:49 +00:00
truelight
b935a74782 (svn r11383) -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13) 2007-11-04 23:06:39 +00:00
truelight
f1df43ec21 (svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13) 2007-11-04 22:47:34 +00:00
glx
74ee13aba8 (svn r11381) -Fix [FS#1227]: redo the fix in a less breaking way 2007-11-04 22:24:03 +00:00
glx
354fdbc0c9 (svn r11380) -Revert (r11191, r11196): it worked, but broke cargo loading 2007-11-04 22:21:46 +00:00
truelight
cd7310ce54 (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
adc4ab5540 (svn r11378) -Codechange: optimize KillFirstBit2x64 (skidd13) 2007-11-04 18:28:52 +00:00
truelight
e983210f5e (svn r11377) -Codechange: some more strictness in macros.h (skidd13) 2007-11-04 17:43:53 +00:00
rubidium
e3134d6e2b (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
464ee0a02a (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
e2c0f1faf7 (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
c871dc1dd5 (svn r11373) -Fix [FS#1398]: do not even think about building disabled industries. 2007-11-03 23:34:12 +00:00
glx
073290021b (svn r11372) -Fix [FS#1394]: don't stop on first invalid cargo type when displaying industry acceptance 2007-11-03 15:32:07 +00:00
rubidium
0b7de36eb2 (svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it should not kick in. 2007-11-03 15:21:26 +00:00
rubidium
5a9e2f8d82 (svn r11370) -Fix [FS1384]: manually replacing a vehicle with shared orders makes it lose it's order index and service interval. Patch by jthill. 2007-11-03 06:20:25 +00:00
truelight
19d13f90b3 (svn r11369) -Codechange [FS#1390]: changes some int to int8 in macros.h, as they describe a bit-position, which fits perfectly in an int8 (max 64) (skidd13)
-Codechange [FS#1390]: added consts in macros.h functions, so compilers can optimise better (skidd13)
-Codechange [FS#1390]: remove HAS_SINGLE_BIT, as COUNTBITS does the same (skidd13)
2007-11-02 16:57:52 +00:00
miham
73e2785724 (svn r11368) -Update: WebTranslator2 update to 2007-11-01 16:56:10
afrikaans  - 9 fixed, 1 changed by TrueTenacity (10)
brazilian_portuguese - 1 fixed by fukumori (1)
catalan    - 1 fixed by arnaullv (1)
croatian   - 1 fixed by knovak (1)
french     - 1 fixed by glx (1)
slovak     - 1 fixed by lengyel (1)
ukrainian  - 1 fixed by mad (1)
2007-11-01 15:56:44 +00:00
rubidium
f7cc8872f8 (svn r11367) -Fix [FS#1258]: non-articulated road vehicles should be able to overtake (not-too-long) articulated vehicles, i.e. overtaking of articulated vehicles that are several (3+) tiles long is not supported. 2007-10-31 22:15:19 +00:00
rubidium
f88f2dbdc0 (svn r11366) -Fix [FS#1258]: road vehicles must not drive through eachother on bridges/in tunnels. 2007-10-31 22:13:41 +00:00
rubidium
fd14bd68f7 (svn r11365) -Fix [FS#1288]: when stopping a ship or aircraft, set their speed to 0 so they won't continue at the speed where they were stopped at. 2007-10-31 22:09:23 +00:00
glx
2bba7e860e (svn r11364) -Fix (r11363): compilation broken 2007-10-31 18:53:49 +00:00
belugas
f24e92c175 (svn r11363) -Codechange: Remove some magical numbers 2007-10-31 18:01:41 +00:00
rubidium
f9079240bd (svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed. 2007-10-30 20:31:35 +00:00
miham
3c0356de17 (svn r11361) -Update: WebTranslator2 update to 2007-10-30 19:53:53
afrikaans  - 211 fixed, 22 changed by TrueTenacity (233)
brazilian_portuguese - 2 fixed by fukumori (2)
bulgarian  - 3 fixed by thetitan (3)
catalan    - 3 fixed, 1 changed by arnaullv (4)
croatian   - 49 fixed by knovak (49)
czech      - 51 fixed by Hadez (51)
danish     - 55 fixed by ThomasA (55)
dutch      - 2 fixed by habell (2)
estonian   - 52 fixed by t2t2 (7), kristjans (45)
french     - 2 fixed by Skiper (2)
german     - 56 fixed by moewe2 (56)
italian    - 3 fixed, 1 changed by lorenzodv (4)
japanese   - 56 fixed by ickoonite (56)
latvian    - 38 fixed by Gustavo (38)
norwegian_nynorsk - 56 fixed by pollux (56)
romanian   - 55 fixed, 3 changed by CrystyB (16), kneekoo (42)
russian    - 3 fixed by Smoky555 (3)
slovak     - 2 fixed, 4 changed by lengyel (6)
slovenian  - 3 fixed by Necrolyte (3)
spanish    - 4 fixed by eusebio (4)
traditional_chinese - 55 fixed by xbddc (55)
ukrainian  - 3 fixed, 10 changed by fevral13 (3), mad (10)
2007-10-30 18:56:06 +00:00
rubidium
435bc80e71 (svn r11360) -Fix [FS#1375]: do not crash when trying to "draw" an invalid string, just draw a message saying it is invalid. 2007-10-30 18:32:26 +00:00
rubidium
909e292223 (svn r11359) -Fix [FS#1381]: shared timetables were not properly refreshed with autofill. 2007-10-30 17:57:51 +00:00
rubidium
50d51e83bb (svn r11358) -Fix: condition types 0x0B and 0x0C are also valid for variable 0x88 in action 7/9. 2007-10-30 17:24:04 +00:00
truelight
9cf6fe8bca (svn r11357) -Fix: NetworkUniqueID could be 80 chars, while the max size we generate is 32. So reduce the size a bit. Pointed out by dihedral, so give him a big hug ;) 2007-10-30 11:29:01 +00:00
glx
3d150b6230 (svn r11356) -Fix (r11305): funding industries in MP game was causing desync 2007-10-29 23:29:06 +00:00
rubidium
3722b834ef (svn r11355) -Fix [FS#1377]: loading too many GRFs was not handled gracefully causing crashes and such. 2007-10-29 23:02:31 +00:00
rubidium
840de103d1 (svn r11354) -Codechange [FS#1379]: one variable wasn't freed whereas all others were. It's not causing any problems as it happens during the shutdown of OpenTTD. So basically it is only for consistency. 2007-10-29 22:30:54 +00:00
glx
7e769d3286 (svn r11353) -Codechange: add support for newgrf callback 32 2007-10-28 16:00:51 +00:00
glx
6120d02751 (svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) instead calling it every time the vehicle is drawn 2007-10-28 15:40:18 +00:00
bjarni
e6116d11b8 (svn r11351) -Fix (r11342): [OSX] killed a warning 2007-10-27 11:26:19 +00:00
rubidium
31141bd6bd (svn r11350) -Change: add missing elrail sprites for some rail build buttons/cursors. Sprites by skidd13. 2007-10-27 11:23:13 +00:00
rubidium
4e822be109 (svn r11349) -Fix [FS#1372]: crash when moving "invalid" cargo to a station. 2007-10-27 11:20:47 +00:00
bjarni
5c3b19ec89 (svn r11348) -Fix (r11049): [OSX] killed a warning (don't ask why only OSX showed this one) 2007-10-26 21:32:24 +00:00
belugas
17df5bdf72 (svn r11347) -Codechange: use marker loaded grf feature has_newwater when it is required. (more to come) 2007-10-26 20:55:23 +00:00
belugas
b604d40584 (svn r11346) -Codechange: Add marker has_newwater to the loaded grf features. Not in used yet. 2007-10-26 20:48:15 +00:00
belugas
7ebb45468f (svn r11345) -Cleanup: a bit of comment style fixing 2007-10-26 20:42:03 +00:00
belugas
7c12871401 (svn r11344) -Codechange: Removes some magic numbers referring the highlighting mode in road_gui.cpp
Some typos fixed too.(FS#1371-skidd13)
2007-10-26 16:38:32 +00:00
belugas
c9858e35db (svn r11343) -Fix[FS#1368]: Autoslope did not work correctly for single track on higher part of steep slopes. (frosch) 2007-10-26 16:26:50 +00:00
egladil
a1c3d51f7f (svn r11342) -Fix: [OSX] The cocoa driver incorrectly assumed that the blitter always was 8bpp. Now both 8bpp and 32bpp blitters can be used. The driver will check the blitter screen depth. In fullscreen it will select a proper video mode for this depth, and in windowed mode it will simply skip doing fake 8bpp. 2007-10-25 23:45:03 +00:00
glx
08503f5ba5 (svn r11341) -Codechange: add missing callback ID enums, add stub for house property 20 and reorder unimplemented action 0 properties 2007-10-25 23:24:28 +00:00
belugas
5da0e87d9d (svn r11340) -Fix[FS#1362]: Newindustries can provide no production at start. So the Modifying Production cheat was a bit puzzled on how to deal with it. This will help a bit. 2007-10-25 02:26:02 +00:00
rubidium
3a785b000a (svn r11339) -Add: autoroad; same as autorail, but for road and trams and only on X and Y direction. Patch by Octopussy and skidd13. 2007-10-22 19:11:50 +00:00
rubidium
00161bf9aa (svn r11338) -Fix [FS#1359]: water tiles not at sealevel (i.e. canals) should not be owned by water as that signals normal water. 2007-10-22 17:03:08 +00:00