Commit Graph

1101 Commits (98cf7f5c7b6d107a488635178f8cad7e9bc96ffe)

Author SHA1 Message Date
rubidium 8b8f20c216 (svn r9518) -Fix [Windows]: do not free an uninitialized pointer. 18 years ago
maedhros 2eed59028f (svn r9476) -Codechange: Make build windows for all vehicle types the same width. 18 years ago
maedhros 822ce5661d (svn r9475) -Codechange: Allow the purchase details widget to expand dynamically if there's still not enough room for the text. 18 years ago
maedhros 9339c954e1 (svn r9474) -Fix (r8378): Expand the details widget in the vehicle build windows again to make room for all the text. 18 years ago
peter1138 b30354d690 (svn r9473) -Codechange: add 'unhandled variable' debug message to newcargo resolver 18 years ago
maedhros e496aaac1f (svn r9472) -Fix (r9449): num is the number of newlines in the string, not the number of lines. Also allow for maxh being negative. 18 years ago
belugas 1597b07849 (svn r9469) -Fix(r3720): The maximum year allowed for to_euro conversion of custom currency was set to 1000, making it impossible to ever have one. Now, with 3000, it should be a little more comfortable 18 years ago
belugas 32b33e3121 (svn r9467) -Fix(FS#703,6108): When resetting the array of currencies, the custom currency was reset too, thus loosing the setting a user could have used for it.(glx) 18 years ago
rubidium f9547cf3b2 (svn r9455) -Fix: the values for diff_custom, diff_level and snow_line in the .cfg were not properly checked. 18 years ago
maedhros 68248cad4f (svn r9449) -Fix: Truncate the newgrf information text in the newgrf gui if it's too long. 18 years ago
peter1138 4a1f9286dd (svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable... 18 years ago
peter1138 5780965b90 (svn r9438) -Codechange: Map cargo colours from DOS to Windows if necessary. 18 years ago
rubidium 4a9dabe2c8 (svn r9437) -Fix (r9420): dedicated server crashed when the y part of the resolution was less than 10. 18 years ago
peter1138 18c21cc115 (svn r9436) -Fix (r9411): don't deactivate GRF in an action 7/9 during reservation (and loading of cargo data), and action 6 should be run also 18 years ago
peter1138 8ec3e58b48 (svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high 18 years ago
peter1138 0aad93d1ce (svn r9434) -Fix (r9418): remove typedef from forward declaration to appease MSVC or something 18 years ago
truelight 0ecd7f7718 (svn r9429) -Fix r9338: when deleting a vehicle which has shared orders with one more vehicle and no orders, segfaulted 18 years ago
peter1138 5a73caa0f7 (svn r9427) -Codechange: remove redundant variable 18 years ago
celestar 44be40052f (svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations 18 years ago
rubidium 3e3f582d98 (svn r9420) -Fix [FS#701]: crashes when the chatbox would be drawn outside of the main window. 18 years ago
peter1138 f69549f1eb (svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback handler and custom icon sprites 18 years ago
peter1138 c63db0def3 (svn r9417) -Fix (r1): Waiting cargo icons in the station view window were incorrectly drawn if the cargo list was scrolled, resulting in overlapping images 18 years ago
peter1138 25d4c3028f (svn r9416) -Codechange: Split NewGRF Action 3 handler into separate functions for each feature (vehicles are common, though) 18 years ago
miham 5563550d98 (svn r9415) -Update: WebTranslator2 update to 2007-03-23 20:04:40
danish     - 1 changed by ThomasA (1)
german     - 5 fixed by moewe2 (5)
hungarian  - 1 fixed by miham (1)
portuguese - 8 fixed by Digitalfox (8)
simplified_chinese - 9 fixed by Fishingsnow (9)
18 years ago
peter1138 4621436d07 (svn r9413) -Codechange: Remove default cargo translation table and use bitnums directly if no table is provided. This lets pre-cargolabel cargo definitions work. 18 years ago
peter1138 9a10771046 (svn r9412) -Fix (r8886): When looking up a cargo type by label skip disabled cargos 18 years ago
peter1138 9931916345 (svn r9411) -Codechange: Add support for loading of newcargo data. 18 years ago
belugas 691f8578fd (svn r9400) -Codechange: Use some more representative enum names for landscape types. 18 years ago
belugas 8298227685 (svn r9399) -Feature: Openttd.cfg will now present landscape patch entry as been temperate, arctic, tropic or toyland.
This is the first usage of the callback conversion system of settings loading
18 years ago
belugas de273f1c45 (svn r9398) -Feature: Allow for a conversion callback system while reading configuration file, in case of wrong value.
This is the basic step, no patch setting is actually using it, so far
18 years ago
peter1138 3c6e6a1d99 (svn r9393) -Codechange: Use newgrf town resolver as station parent scope handler 18 years ago
miham f2b8466375 (svn r9392) -Update: WebTranslator2 update to 2007-03-21 19:54:29
brazilian_portuguese - 2 changed by fukumori (2)
danish     - 11 fixed, 2 changed by ThomasA (13)
esperanto  - 8 fixed by LaPingvino (8)
estonian   - 28 fixed by vermon (27), t2t2 (1)
finnish    - 19 fixed, 66 changed by pallokala (9), habazi (76)
french     - 9 changed by Skiper (9)
italian    - 1 fixed, 49 changed by sidew (50)
traditional_chinese - 2 fixed by thomasau (2)
ukrainian  - 9 changed by mad (9)
18 years ago
belugas e9295b82ff (svn r9391) -Documentation : correct Doxygen of comments and @file inclusion. Time for P and Q files 18 years ago
belugas 4d86aa2479 (svn r9390) -Documentation : correct Doxygen of comments and @file inclusion. This time, brought to you by the letter O 18 years ago
peter1138 93fe91cc8c (svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops. 18 years ago
rubidium 7e00fdac90 (svn r9387) -Fix (r9385): termination of a comment forgotten. 18 years ago
belugas 8952924c64 (svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N. 18 years ago
rubidium d99a269493 (svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet. 18 years ago
rubidium f64f9fad4f (svn r9377) -Fix (r9376): the off-by-one error was also present at another location :( 18 years ago
rubidium d384260ba5 (svn r9376) -Fix (r8969): off-by-one error for the amount of mouth pieces for men. 18 years ago
rubidium 9f7f58bdfc (svn r9373) -Fix (r9271): the chosen language was not stored nor read properly in/from the cfg. 18 years ago
maedhros 94db6aa1a2 (svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
18 years ago
maedhros ad0b5de3da (svn r9367) -Fix (r9315): If a new house doesn't have a corresponding action 3, the
graphics for the substitute (original) house should be drawn instead.
18 years ago
belugas 4e5567a710 (svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot. 18 years ago
peter1138 b08c8dcb6a (svn r9352) -Codechange: Use cargo class to determine if an aircraft should carry mail 18 years ago
rubidium adf90db9d0 (svn r9339) -Codechange: disable shares by default as the sharing system is broken (abusable) and should therefor not be used in multiplayer games.
-Codechange: make default maximum distance from the edge for oil refineries a little higher, so the chance that you get oil refineries is a little better.
18 years ago
truelight a33d240af8 (svn r9338) -Fix: close the Shared Order Vehicle List if you remove the shared link with only 2 vehicles 18 years ago
truelight c24f6f3b24 (svn r9337) -Fix [FS#542]: assert() when you removed the orders of a shared list while having the shared order vehicle list open. 18 years ago
peter1138 21c69a550a (svn r9327) -Fix (r9301): Fix warning on MSVC 18 years ago
peter1138 5a2236dd84 (svn r9322) -Codechange: Use cargo class to count crash/flood victims 18 years ago
maedhros ccd448b72f (svn r9316) -Fix (r9315): Bump the savegame version for the newhouses merge. 18 years ago
maedhros 209101391a (svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
the newhouses grf specs, so all newhouses grfs will be playable in the game.

Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
18 years ago
peter1138 3d3d8d7c47 (svn r9303) -Codechange: Use cargo class when counting passengers in a road vehicle crash, and when loading aircraft. 18 years ago
peter1138 fa206387ad (svn r9302) -Codechange: Use cargo class to test for passengers when deciding on the livery scheme to use. 18 years ago
peter1138 497e5fe565 (svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops. 18 years ago
peter1138 d947f5cec9 (svn r9300) -Codechange: Use cargo's town effect property in the subsidy gui 18 years ago
richk 46fd8ca644 (svn r9299) -Fix (FS#675,FS#660): Small micro-movements on airports (of <4 pixels) caused odd aircraft movements. On oilrigs, this caused a full crash as movement would take helicopter out of airport/station tile.
Corrected by maneuvering aircraft directly over these tiny movements, rather than relying on movement by changing facing.
18 years ago
richk 11ba449045 (svn r9298) -Fix (r1): A34-1000, Z-Shuttle, and Kelling K1 should be listed as small aircraft. 18 years ago
miham 691e9c1d0c (svn r9292) [Translations] -Fix: Removed empty translation reached /trunk 18 years ago
miham a0bb478a29 (svn r9286) -Update: WebTranslator2 update to 2007-03-18 19:56:07
american   - 10 fixed by WhiteRabbit (10)
brazilian_portuguese - 7 fixed by fukumori (7)
bulgarian  - 12 fixed by thetitan (12)
catalan    - 3 fixed by arnaullv (3)
czech      - 8 fixed by Hadez (8)
dutch      - 8 fixed by habell (8)
french     - 3 fixed by glx (3)
greek      - 80 fixed by thanoulas (80)
italian    - 7 fixed, 7 changed by sidew (6), bluesboy84 (8)
japanese   - 11 fixed by PouncingAnt (2), ickoonite (9)
korean     - 3 fixed by darkttd (3)
norwegian_nynorsk - 6 fixed by pollux (6)
polish     - 7 fixed by meush (7)
russian    - 9 fixed, 1 changed by DarkFenX (10)
slovak     - 10 fixed by lengyel (10)
slovenian  - 6 fixed by Necrolyte (6)
spanish    - 9 fixed by eusebio (9)
swedish    - 9 fixed by daishan (9)
traditional_chinese - 6 fixed, 4 changed by thomasau (10)
ukrainian  - 9 fixed by mad (9)
18 years ago
rubidium 065144b5ae (svn r9281) -Fix [FS#687]: compile failure when compiling with 'home directories' enabled (stepancheg). 18 years ago
rubidium b63634f095 (svn r9277) -Fix [FS#685]: shared orders got messed up when the 'first' trains got removed in the depot. 18 years ago
celestar df793407cb (svn r9275) -Fix(r8973, FS#686): Faulty display of aircraft maximum velocity in the news item for new vehicles 18 years ago
rubidium b30f46f274 (svn r9271) -Codechange: make the language pack initialisation a little more clear and extendable (more language paths). 18 years ago
rubidium e04afaf704 (svn r9267) -Fix (r9266): some leftover includes and erronous call to ChangeWorkingDirectory (it was moved). 18 years ago
rubidium aeb7241db8 (svn r9266) -Codechange: unify the retrieval of the base paths a little more. 18 years ago
peter1138 70e32d663a (svn r9259) -Codechange: NUM_CARGO isn't a valid cargo type... 18 years ago
peter1138 28717b6bc5 (svn r9257) -Codechange: Use cargo's town effect property for determining subsidy source/target type. 18 years ago
celestar 045d3dc05f (svn r9251) -Fix(r6057, FS#644): Use a less CPU-intensive algorithm to find a random industry for the AI to prevent it slowing down the game. The AI now sucks a even a bit more than before (if that's even possible). 18 years ago
peter1138 50811a49ed (svn r9243) -Fix (r9162,FS#683): One too many table rows caused cargo acceptance mixup. 18 years ago
peter1138 5b3b287883 (svn r9236) -Codechange: Add 'town effect' attribute to cargo types. This will be used to specify how the cargo behaves wrt towns, instead of relying on fixed cargo IDs. 18 years ago
belugas dbee26fda9 (svn r9215) -Documentation : correct Doxygen of comments 18 years ago
truelight 89794adebe (svn r9205) -Fix: if you started openttd with '-g' you got the same map every run 18 years ago
belugas 9e90282712 (svn r9190) -Fix: Little typo in an enum. 18 years ago
maedhros 787d0fcf62 (svn r9178) -Fix (r7573) [FS#679]: Don't allow building docks or buoys under bridges. 18 years ago
belugas ee945d2375 (svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile animation data into IndustryTileSpec array
Added a few documentation on remaining animation arrays (mostly ToyLand ones)
18 years ago
peter1138 c4a191dd11 (svn r9147) -Fix (r1770, r8161): when loadin games, enroute_from and enroute_from_xy were updated in the wrong place, causing issues with TTD savegames/scenarios. 18 years ago
KUDr 8a58bb5108 (svn r9146) -Fix [NTP][FS#676](r6800): "Train is lost" message is generated incorrectly. Forgot to set the best bird distance to zero in case we found the destination to indicate success. (de_zeurkous) 18 years ago
truelight b1e8191040 (svn r9137) -Fix: if all news-setting buttons show 'full', make the ALL-button show 'full' too 18 years ago
miham 21392c7846 (svn r9132) [Translations] -Fix: Removed empty strings added by last commit 18 years ago
rubidium 9a107b8752 (svn r9130) -Codechange: move the fileio functions that do open a file into a Fio slot together. 18 years ago
rubidium c0ac3745a0 (svn r9129) -Codechange: unify parts of DeterminePaths. 18 years ago
peter1138 a2c7352f71 (svn r9127) -Codechange: Check if a cargo is valid before displaying it in a station's cargo rating list. (And duff up the block a little) 18 years ago
bjarni e93ace0cfa (svn r9126) -Feature: "Function of scrollwheel" can now be set to off as well
Note: since this can be useful for all platforms, the GUI is no longer OSX specific.
  Note: scrolling lists is still unaffected by this setting
18 years ago
bjarni a7259e6317 (svn r9125) -Fix r9111: default scrollwheel setting is now zooming, not scrolling 18 years ago
miham c998e496e4 (svn r9118) -Update: WebTranslator2 update to 2007-03-11 16:16:39
brazilian_portuguese - 2 fixed by fukumori (2)
bulgarian  - 1 fixed by thetitan (1)
catalan    - 5 fixed by arnaullv (5)
czech      - 1 changed by Hadez (1)
esperanto  - 1 fixed by LaPingvino (1)
french     - 5 fixed by glx (5)
german     - 1 fixed by Neonox (1)
greek      - 260 fixed by thanoulas (260)
hungarian  - 8 fixed by miham (8)
italian    - 1 fixed by sidew (1)
korean     - 12 fixed by leejaeuk5 (7), darkttd (5)
polish     - 1 fixed, 2 changed by meush (3)
portuguese - 2 fixed by izhirahider (2)
slovenian  - 1 fixed by Necrolyte (1)
traditional_chinese - 1 fixed, 42 changed by thomasau (43)
18 years ago
rubidium 40ebea6a6a (svn r9117) -Fix: the (current) difficulty level button was not selected when opening the difficulty window. 18 years ago
miham 8ce88873c7 (svn r9116) [Translations] -Change: force remove of changed translations (r9115) to ensure they are really changed 18 years ago
rubidium bfe4878568 (svn r9115) -Fix [FS#622]: make clear in the tooltips when the canal build tool (in the scenario editor) makes flooding water (ocean). 18 years ago
bjarni 49d26fd754 (svn r9112) -Feature r9111: scrollwheel scrolling can now also scroll the smallmap 18 years ago
bjarni 7d498a55de (svn r9111) -Feature: [OSX] mighty mice and touchpads can now scroll the map (in all directions)
It has to be enabled first (in patches->interface) first and this will disable scrollwheel zooming
  Note: patch setting "Map scrollwheel speed" might need to be changed since the "correct" setting
    appears to depend on what kind of mouse is in use (mighty mouse or touchpad)
18 years ago
belugas c90cfa1df0 (svn r9108) -Fix(9093) : MSVC was a bit unhappy with some of the type changes. So basically, widening the types makes the difference 18 years ago
rubidium b510eaaca5 (svn r9105) -Fix [FS#629]: disable the ability to make flooding water with the canal build tool. In the scenario editor you can still make both canals and flooding water at height level 0. 18 years ago
KUDr 3ccc5e7b27 (svn r9104) -Fix(r9080, r9081): UINT32_MAX is undefined on MSVC, std::numeric_limits doesn't exist in gcc 2.95 (MorphOS), so back to tree and use ~0 instead (peter1138) 18 years ago
peter1138 53452ef9a7 (svn r9102) -Codechange: (NewGRF) Apply cargo translation table to vehicle refit masks 18 years ago
truelight de5beec61c (svn r9097) -Fix [FS#525]: open and close messages now have their own setting, so you can hide economy changes, but do show open/close of industries
-Change: store news_display_opt in his own section, so it is no longer stored as uint in openttd.cfg (allows adding news-types easier)
18 years ago
peter1138 23e4a98dad (svn r9094) -Codechange: Don't set up refit masks for engine types not in the current climate, and exclude engine types if their cargo type is invalid and they have no refittable type. 18 years ago
peter1138 1efd1adc97 (svn r9093) -Codechange: variable scope / type 18 years ago
peter1138 ec5b2c600b (svn r9092) -Codechange: (NewGRF) (re r8885) Also set cargo type as invalid if the chosen type is not available in the current climate. 18 years ago
belugas b57ef910f8 (svn r9089) -Codechange: Remove the 32 widgets limit on News Options window.
-Codechange: Use the newly created WWT_TEXT widget.
-Cleanup: remove a lot of magic numbers, make the whole window more flexible, with now the possibility to easily add new type of news events.
Thanks glx for ideas from an old patch
18 years ago
belugas 8ef56794ab (svn r9088) -Add : a new type of widget, called WWT_TEXT. It is a simple truncated string. It will be usefull on windows where lot of simple text is always drawn on the WE_PAINT event, making the code clearer. For now, left, right (total size of the window), top, color and data are necessary to use it. Maybe more features will be available soon. 18 years ago
Darkvater 8b2f9c8207 (svn r9086) -Feature/Fix: [win32] Rewrite keyboard input and handle all keypresses in a WM_CHAR event. This saves us from doing translation (ToUnicode[Ex], ToAscii[Ex]), and we get free IME-input support as a plus. 18 years ago
Darkvater 8007fb38d4 (svn r9085) -Codechange/Fix: [win32] Move the initialisation of _codepage (non-UNICODE) to winMain as a dedicated server, or different video driver will not have a win32 messageloop. 18 years ago
Darkvater 6f36db349f (svn r9084) -Fix: [win9x] Clipboard paste for Windows95 (doesn't have CF_UNICODETEXT) correctly converts the input to the current locale. 18 years ago
Darkvater a59eec1c36 (svn r9083) -Codechange: Be more lenient when trimming UTF-8 strings and don't terminate the string when an invalid encoding is encountered, but only focus on maximum length. 18 years ago
KUDr 9cd4f3a204 (svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead. 18 years ago
peter1138 8754295bd9 (svn r9080) -Codechange: dynamically build cargo filter buttons in the station list window. 18 years ago
peter1138 53ee239945 (svn r9079) -Codechange: add WWT_LAST widget when dynamically building cargo payment graph 18 years ago
rubidium 9cfae085cb (svn r9078) -Codechange: coding style. 18 years ago
rubidium 2b6736d244 (svn r9077) -Fix [FS#612]: the wrong catenary wires were drawn for tunnel entrances. 18 years ago
rubidium e1eab15b84 (svn r9076) -Fix [FS#529]: the intercontinental airport used 'T-junction' runway sprites when there is no exit in the middle of the runway as in the city airport (skidd13). 18 years ago
belugas b95daaf434 (svn r9075) -Codechange: Cleanup of industry_cmd (Step-7). Small step that is. The new industry messages do not need a series of tests. Only one property to use. 18 years ago
glx 921d4f58cb (svn r9074) -Codechange: win32 dedicated console now doesn't need an extra 'enter' to fully quit 18 years ago
bjarni b6efe5482d (svn r9073) -Codechange: moved autoreplace to a file of it's own (now autoreplace has a cmd and a gui file) 18 years ago
bjarni 0ad237611e (svn r9072) -Codechange: [Orders] added methods to orders to free them and check if they are in use 18 years ago
truelight e2eeac06f8 (svn r9071) -Fix [FS#459]: when in networking an other player takes over an AI which is also controlled by a player, move the player with the company to the company who bought out the AI 18 years ago
truelight ca375d573a (svn r9070) -Fix [FS#404]: if bribe failed and you didn't pick up cargo yet, you wouldn't ever be able to do so for a given station 18 years ago
peter1138 900fcaa2fa (svn r9069) -Codechange: Change a do ... while loop with a for loop. This fixes some warning that I never got anyway... 18 years ago
rubidium 36cea84b11 (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). 18 years ago
truelight 05eb676f22 (svn r9067) -Fix [FS#637]: don't make owner signs transparent, as then you loose the information who it owns 18 years ago
truelight c5a6a4458b (svn r9066) -Fix [FS#638]: store the owner of a statue, so when it gets removed, the town is notified of it 18 years ago
rubidium 4ca294dfff (svn r9065) -Fix: possible dereference of NULL pointer. 18 years ago
truelight d893909daa (svn r9064) -Fix [FS#663]: don't keep on scrolling for non-numeric values in settings, but require reclick 18 years ago
celestar 5191183f22 (svn r9062) -Fix (r4822, FS#595): The station list, sorted by cargo rating, now takes stations into account that have no cargo waiting (KeeperOfTheSoul). While at it, doxygen the function 18 years ago
rubidium 283fca3ee7 (svn r9061) -Fix [r9038, FS#668]: passwords are send when the server is in the 'authorizing' state, not 'inactive'. 18 years ago
Darkvater 1a2576cd7e (svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system. 18 years ago
miham 663bf46352 (svn r9054) -Update: WebTranslator2 update to 2007-03-07 18:39:14
catalan    - 2 fixed by arnaullv (2)
croatian   - 95 fixed, 34 changed by Ydobon (129)
czech      - 1 fixed, 3 deleted, 109 changed by Hadez (113)
danish     - 4 fixed by ThomasA (4)
dutch      - 2 fixed by habell (2)
esperanto  - 5 fixed by LaPingvino (5)
french     - 2 fixed by glx (2)
german     - 1 fixed by Neonox (1)
hungarian  - 1 fixed by miham (1)
italian    - 1 fixed by sidew (1)
japanese   - 14 fixed by ickoonite (14)
korean     - 9 fixed by Nios (9)
norwegian_nynorsk - 1 fixed by Eikje3 (1)
polish     - 2 fixed by meush (2)
simplified_chinese - 5 fixed by Fishingsnow (5)
slovenian  - 1 fixed by Necrolyte (1)
spanish    - 5 fixed by eusebio (5)
swedish    - 5 fixed by daishan (5)
traditional_chinese - 7 fixed by sam0737 (7)
ukrainian  - 1 fixed by znikoz (1)
18 years ago
rubidium 979ccd45ba (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 4169bfba06 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
glx b03db3c381 (svn r9048) -Fix r9040: non-bool used as bool 18 years ago
rubidium b6d5f6f746 (svn r9043) -Fix [FS#652]: the personal (.openttd) directories were hidden in the load/save directory listings (stepancheg). 18 years ago
belugas 4445faba29 (svn r9042) -Add : Maedhros as a developper 18 years ago
bjarni 13c72c07d6 (svn r9040) -Codechange: the build window and CmdBuildAircraft() now shares the code to figure out if an aircraft is buildable in the hangar in question
This should help ensuring that the build command and the list are consistent in what aircraft are buildable
18 years ago
bjarni 6ab89d0031 (svn r9039) -Fix r9034: missed the _pause in cocoa_v.mm 18 years ago
rubidium 4b75a29766 (svn r9038) -Fix [FS#115]: inactive connections are not automatically kicked, i.e. people who only open a telnet (or similar) connection to a server. 18 years ago
maedhros 6b329f2728 (svn r9037) -Feature: [NewGRF] Add support for Action 13, which allows you to translate
grf-specific texts. The translations will only be shown if you're using a
language with a grf language id and if a string hasn't already been set
specifically for the language you're using.
18 years ago
rubidium b9b0edbec4 (svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h. 18 years ago
truelight ac6c36f980 (svn r9035) -Fix [SunOS]: Solaris sometimes has pid_t defined as long. Fix warnings in those cases 18 years ago
truelight b3b14ac2ad (svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
a symbol called _pause (and therefor our variable conflicts with 
 thatone. We shouldn't be using _ as global indicator.....)
18 years ago
maedhros b838a90657 (svn r9031) -Codechange: Introduce grfconfig->status, and use it for states that are
mutually exclusive. At the same time, add an INITIALISED state which makes it
possible to check if a grf is not yet active but will be later on during the
GLS_ACTIVATION loading stage.
18 years ago
maedhros 878b6fcf37 (svn r9029) -Fix (r7326): Only call the gradual loading amount callback if the bit for it is set in the vehicle's callbackmask. 18 years ago
rubidium 38cc68898d (svn r9027) -Fix [FS#664]: desync caused by buffer overrun. 18 years ago
richk e073c085dc (svn r9022) -Fix [FS#660]: Airport state machine fails if the adjustment in position is less than 4 pixels. The new planespeed movement made this a fatal error on the oilrig. This fix just corrects the oilrig movement orders so that the error does not occur.
Full solution is to allow minor corrections without changing the facing of the aircraft. (spotted by ledow)
18 years ago
miham 88a00e9d40 (svn r9021) [Translations] -Fix: removed empty strings once again. 18 years ago
miham 4d9344dc5f (svn r9020) -Update: WebTranslator2 update to 2007-03-05 19:56:28
american   - 17 fixed by WhiteRabbit (17)
brazilian_portuguese - 4 fixed by fukumori (4)
bulgarian  - 1 fixed by thetitan (1)
catalan    - 4 fixed by arnaullv (4)
czech      - 5 fixed, 39 changed by Hadez (44)
dutch      - 4 fixed by habell (4)
finnish    - 7 fixed by pallokala (7)
greek      - 10 fixed by thanoulas (10)
italian    - 4 fixed by sidew (4)
polish     - 3 fixed, 5 changed by meush (8)
portuguese - 3 fixed by izhirahider (3)
romanian   - 17 fixed, 8 changed by kneekoo (25)
russian    - 3 changed by DarkFenX (3)
slovak     - 4 fixed, 30 changed by lengyel (34)
ukrainian  - 6 fixed by znikoz (6)
18 years ago
truelight d3df379aec (svn r9019) -Fix: use <> for system-headers 18 years ago
miham f4db967046 (svn r9018) -Change: added SunOS as OS name in the quit dialog 18 years ago
celestar 7d08af73f0 (svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
18 years ago
tron 30d1b223c8 (svn r9015) -Fix
NL at EOF
18 years ago
tron 8b597bc000 (svn r9014) -Fix
Improve translation using gender tags
18 years ago
tron 2f9d5effb1 (svn r9013) -Fix
Remove incorrect empty translation
18 years ago
Darkvater 2ff94ab000 (svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
18 years ago
Darkvater ca4c856247 (svn r9011) -Codechange (r9003): Rework Utf8PrevChar so that it returns a pointer to the previous UTF8 character's first byte instead of a byte-length offset 18 years ago
Darkvater f8a5fa0921 (svn r9009) -Fix (r1): Determine whether to play a sound or not when entering a tunnel based on engine type (only steam engines) instead of on spritenum which can be invalid for newgrf trains. DBSet(XL) or any other steam trains without newsounds should sound their horn now. 18 years ago
miham 2422f47f1a (svn r9005) -Update: WebTranslator2 update to 2007-03-04 09:03:25
bulgarian  - 13 fixed by groupsky (13)
danish     - 13 fixed by ThomasA (13)
french     - 4 fixed, 6 changed by glx (4), Skiper (6)
german     - 4 fixed by Neonox (4)
hungarian  - 3 fixed by miham (3)
norwegian_bokmal - 13 fixed by oletk (13)
norwegian_nynorsk - 20 fixed, 1 changed by pollux (21)
portuguese - 4 fixed by izhirahider (4)
russian    - 4 fixed, 10 changed by DarkFenX (14)
simplified_chinese - 13 fixed by Fishingsnow (13)
slovenian  - 4 fixed by Necrolyte (4)
traditional_chinese - 2 fixed by thomasau (2)
18 years ago
Darkvater 4c912e462c (svn r9003) -Codechange: Introduce a function Utf8PrevCharLen that finds the starting character of an UTF-8 sequence from a given position and returns the length to the first UTF-8 encoding byte of that sequence. 18 years ago
rubidium 09333fde60 (svn r9002) -Update: remove strings removed in r9001 from languages other than English. 18 years ago
rubidium 356c2e2c90 (svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles. 18 years ago
rubidium 9da74db501 (svn r9000) -Fix [FS#581, r2572]: new locomotive names were not announced in the news, it said "new railway locomotive available - railway locomotive". 18 years ago
rubidium 62927d481f (svn r8999) -Fix [FS#450]: do not select a disabled platform length/number of track count when going out of drag-drop mode. 18 years ago
Darkvater 5790d14571 (svn r8995) -Fix (FS#620, r8464): revert properly (reversion of r4322) internal speeds 18 years ago
Darkvater 61a00c99b4 (svn r8994) -Fix [FS642, r3320]: [win32] Resolution doubled in cfg file when fullscreen mode used. Use _wnd.double_size which gives back its correct state with respect to double size and fullscreen. 18 years ago
peter1138 aa9bd2e028 (svn r8990) -Fix: more indenting and variable scoping 18 years ago
peter1138 a712d97c79 (svn r8989) -Fix: more indenting and variable scoping 18 years ago
peter1138 a1f44413b2 (svn r8988) -Fix: Indenting, variable scope, variable type and minor duffage 18 years ago
belugas 5792aa85c7 (svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style. 18 years ago
rubidium 502ec1b672 (svn r8980) -Fix (FS#656): the industry list should also be (re)set when the number of industries is 0. 18 years ago
rubidium 5ec31ebc2b (svn r8979) -Fix (r8978): unsigned vs signed comparisons. 18 years ago
richk cd7b71092b (svn r8978) -Feature: Rewrite of transfer system.
This major feature-fix keeps track of the value of transfers offloaded at a station, and hands on to a loading vehicle a credit note proportionate to the cargo loaded. The transferring vehicle is paid only for the distance it has travelled. eg. B-C in a transfer chain A-B-C-D.
When the final cargo is delivered, these credit notes are cashed, and the final vehicle is paid for A-D minus any credit notes it is carrying. The company bank balance increases by the value of the A-D route.
You still need to set up a profitable route; it is still easy to make a loss on transfers by bad planning. :)
18 years ago
Darkvater 27fc1300e2 (svn r8977) -Codechange: Remove the hardcoded maximum width for some drawstrings and replace them with a portion of w->width. Only visible improvement is QueryWndProc which will not write exactly to the edge of the window anymore. 18 years ago
Darkvater e3dff16b21 (svn r8976) -Codechange: Reinitialize all engines after grf files have been reloaded/changed. 18 years ago
Darkvater 213c73d3b1 (svn r8975) -Regression: [win32] Possible buffer overflow if unicode text is pasted into an input box and needs trimming. The last character was wrongly assumed to be of length 1 (tb->maxlength - 1), while a unicode character can be up to 4 long. 18 years ago
Darkvater e514d3972f (svn r8974) -Fix: [win32] Define a win32 target platform ourselves so that we don't conflict with Vista Platform SDK (boekabart) 18 years ago
celestar 5828617a07 (svn r8973) -Feature/Codechange: Changed the internal unit for aircraft velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type. 18 years ago
peter1138 f39b7b0019 (svn r8972) -Codechange: Dynamically add buttons on the cargo payment graph. This lets us remove the gaps and allow more than 12 cargo types later. 18 years ago
rubidium 5b4b9cbd5c (svn r8969) -Codechange: rework of the player face bits.
- introduce a new format (with backward compatability) that is more clear and needs a much simpler face drawer
 - replace tons of ifs/switches/magic numbers by table lookups
18 years ago
truelight 88d2a89422 (svn r8967) -Fix (OSX): silent the warnings in cocoa_v.mm about deprecated stuff.. we know that\! 18 years ago
rubidium d782a74cca (svn r8966) -Codechange: replace some if-cascades by switches. 18 years ago
rubidium 8aacd9874f (svn r8964) -Codechange: use grf_load_string to read action 8 strings instead of trying to do the same manually. 18 years ago
miham 6851639d36 (svn r8957) -Update: WebTranslator2 update to 2007-03-01 21:03:45
afrikaans  - 69 fixed, 24 changed by TrueTenacity (93)
american   - 1 fixed by WhiteRabbit (1)
brazilian_portuguese - 14 fixed, 9 changed by tucalipe (11), fukumori (12)
catalan    - 13 fixed by arnaullv (13)
czech      - 13 fixed by Hadez (13)
dutch      - 13 fixed by habell (13)
esperanto  - 13 fixed by LaPingvino (13)
french     - 13 fixed, 1 changed by glx (14)
german     - 13 fixed by Neonox (13)
hungarian  - 13 fixed by miham (13)
icelandic  - 1 fixed by scrooge (1)
italian    - 13 fixed by sidew (13)
japanese   - 4 fixed by ickoonite (4)
korean     - 3 fixed by darkttd (3)
norwegian_bokmal - 1 fixed by oletk (1)
polish     - 14 fixed by meush (14)
portuguese - 11 fixed by izhirahider (11)
russian    - 13 fixed, 25 changed by DarkFenX (38)
slovak     - 16 fixed, 33 changed by lengyel (49)
slovenian  - 13 fixed by Necrolyte (13)
spanish    - 13 fixed by eusebio (13)
swedish    - 13 fixed by daishan (13)
traditional_chinese - 9 fixed, 3 changed by thomasau (12)
turkish    - 13 fixed by jnmbk (13)
ukrainian  - 15 fixed, 29 changed by mad (32), znikoz (12)
18 years ago
rubidium c7f9ee6914 (svn r8955) -Fix: crash on loading savegames with GRFs that do not have their GRF info/name set. 18 years ago
rubidium dd403b586d (svn r8954) -Codechange: remove direct map accesses from non-map-accessor headers. 18 years ago
rubidium 0945c6950b (svn r8953) -Codechange: make the names of enums of WaterTileType consistent with respect to RailTileType and RoadTileType. 18 years ago
belugas 240cbd4dd2 (svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 18 years ago
rubidium 3e9cc1a651 (svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games. 18 years ago
maedhros 78c3edcbb1 (svn r8946) -Feature: [NewGRF] Add support for vehicle variables 0xFE and 0xFF bit 10,
which is set when a vehicle was built during the exclusive testing phase.
18 years ago
maedhros 2f557f7dc0 (svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can be used for more than just the gradual loading status. 18 years ago
maedhros b9e079cff3 (svn r8944) -Codechange: Move the enum describing the bitmask of Engine.flags to engine.h and give the enum values better names. 18 years ago
maedhros e1748afd4f (svn r8943) -Fix (r5338): [NewGRF] Fix support for vehicle variable 48, which just returns Engine[id].flags 18 years ago
rubidium b5a997a446 (svn r8935) -Codechange: unification of track type between road and rail tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType. 18 years ago
KUDr a7d9cbc151 (svn r8933) -Fix [Win64]: rdtsc now uses intrinsic on VC8 (michi_cc) 18 years ago
rubidium f57f10ded9 (svn r8921) -Fix (FS#654): several issues related to removing all orders from an aircraft and removing the airport it was heading:
- the aircraft would go to (0, 0) and circle there. Clicking the 'eye' to jump to the aircraft in the main window could cause a segmentation fault.
 - when rebuilding an airport with the StationID of the old airport could crash as the FTA state of the aircraft is higher than the number of states of the new airport, causing a crash of all clients and the server when assertions are enabled.
 - when rebuilding an airport with the StationID of the old airport can bring the aircraft in a state where is keeps circling the airport.
To solve these issues all aircraft without a valid order will try to go to the nearest hangar it can safely get to (large jets do not land on small airports). If there is no hangar to go to, the airplane crashes (out of fuel).
18 years ago
Darkvater c83092130b (svn r8920) -Codechange: Do not require to press 'Apply changes' in the newgrf GUI if the changes in there are not activated (this happens in the title screen) 18 years ago
Darkvater 0e3d40caba (svn r8919) -Regression (UTF8) (try #2): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix. 18 years ago
Darkvater 60866482ed (svn r8918) -Revert r8914 as the inverted files have been committed not the correct one. 18 years ago
Darkvater a0a259d32b (svn r8914) -Regression (UTF8): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix. 18 years ago
rubidium d2a36e4c2d (svn r8912) -Codechange: coding style cleanup and moving of two global externs into the functions that use them. 18 years ago
rubidium 01db4b646e (svn r8911) -Cleanup: fixup comments about the RoadVehicleStates and remove two unused enums. 18 years ago
rubidium 191a739d31 (svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header. 18 years ago
rubidium 67201b129d (svn r8907) -Fix (r3281): reading from an unitialized variable. 18 years ago
rubidium 58f2b636b4 (svn r8906) -Feature: translation dependant formatting of dates. 18 years ago
peter1138 7669f63d4e (svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides... 18 years ago
tron 87226c519a (svn r8901) -Fix
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Trackdir, TrackdirBits) and DECLARE_ENUM_AS_BIT_INDEX() altogether
18 years ago
tron 742f5d80b5 (svn r8900) -Fix
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Track, TrackBits)
18 years ago
tron c0ec367e9b (svn r8899) -Fix
Remove the unused second parameter from GetTileRailType()
18 years ago
tron 05c6e8f883 (svn r8897) -Fix
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
18 years ago
tron 270e366772 (svn r8896) -Fix
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult.
Therefore remove the return value.
18 years ago
tron 5d081ed350 (svn r8894) -Fix
Slightly simplify the control flow of TrainController()
18 years ago
tron c8e85a3a78 (svn r8893) -Fix
variable scope, const, misc.
18 years ago
rubidium 1a3763d258 (svn r8892) -Fix (r8879): swapped the eye colour and eyebrow bits. 18 years ago
peter1138 6b7a4ba448 (svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible. 18 years ago
peter1138 bc968d23f1 (svn r8890) -Codechange: (NewGRF) add cargo translation support to engine var 47 18 years ago
rubidium bee20f6abc (svn r8889) -Fix (r8880): a CursorID is not a SpriteID. 18 years ago
peter1138 51ce6fe672 (svn r8888) -Codechange: Replace hardcoded default cargo bitmasks with a list of cargo labels. 18 years ago
KUDr 856ecd41e8 (svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto 18 years ago
peter1138 719f5c7930 (svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only. 18 years ago
peter1138 dfda6b7da4 (svn r8885) -Codechange: (NewGRF) If a default cargo type property is out of range then choose the cargo type from its refit list. 18 years ago
tron 5c91ec0587 (svn r8884) -Fix
Replace SetSpeedLimitOnBridge() by something simpler
18 years ago
maedhros b26ae7f0e7 (svn r8882) -Cleanup (r8881): Remove obsolete strings. 18 years ago
maedhros 4f98bec89b (svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly. 18 years ago
rubidium 4df080bf12 (svn r8880) -Codechange: make anim cursors an array of structs. 18 years ago
rubidium d1f56bb45b (svn r8879) -Codechange: make DrawPlayerFace easier to read. 18 years ago
tron a64ffc1e31 (svn r8878) -Fix
-Fix: Do a better job when checking the parameters of CmdMoveRailVehicle()
NOTE: 0.5 candidate
18 years ago
rubidium 1be5124f7d (svn r8877) -Cleanup: remove already implemented @todo 18 years ago
tron 47b677abfe (svn r8876) -Fix
Replace tests with magic numbers by a simple extraction template for command parameters
18 years ago
tron ac75cf0ae1 (svn r8875) -Fix
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
18 years ago
KUDr efb3637d0f (svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche) 18 years ago
rubidium 98a4fc1399 (svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p). 18 years ago
KUDr 93e3250d1e (svn r8867) -Fix(r8866): revert yapf_costrail.hpp commited by mistake, helpers.hpp had wrong line ending 18 years ago
KUDr 1c3d8fc1e3 (svn r8866) -Doc: added more comments to template struct MakeEnumPropsT 18 years ago
peter1138 a14de92f38 (svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check 18 years ago
KUDr 8001ab69fb (svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like CLRBIT() and so on (modify value of the first parameter instead or returning the result) 18 years ago
peter1138 c924185f97 (svn r8863) -Fix: prefix engine_custom_sprites with _ 18 years ago
belugas 0f090a0c1d (svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
Some documentation addition, when i can easily supply them
18 years ago
Darkvater 9fa035f467 (svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change. 18 years ago
belugas 4160d85cd2 (svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 18 years ago
peter1138 b3efec2e7d (svn r8858) -Codechange: Replace magic number test with class method for determining if a cargo is valid/active. 18 years ago
celestar dfa3c0aae1 (svn r8857) -Documentation: Added some doxygen @file tags, repaired others (the @file tag MUST be found before any line of code, that includes preprocessor directives). 18 years ago
tron 8bffad2b59 (svn r8856) -Fix
Missing */ (r8853)
18 years ago
tron 92159b7afd (svn r8855) -Fix
Change some shift and cast mumbo jumbo for inflation calculation to something remotly comprehensible and explain what the magic number "54" means
18 years ago
belugas fffe2dcfd0 (svn r8854) -Fix(r8853): Ctrl+s (save) without Ctrl does not produce desired result... 18 years ago
belugas b1b5aecae9 (svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style 18 years ago
rubidium a5697946d1 (svn r8852) -Fix (r8735): make the dynamite tool for drive through road stops as if it were removing a normal road tile (consider the local authority and such).
-Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
18 years ago
rubidium 3717774e0a (svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority. 18 years ago
peter1138 59cb258578 (svn r8850) -Codechange: Use the cargo type's is_freight flag instead of checking the cargo type to determine if the cargo type is freight cargo type cargo type. 18 years ago
peter1138 2306a02f75 (svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions. 18 years ago
miham 11f286fb74 (svn r8848) -Update: WebTranslator2 update to 2007-02-22 19:57:58
brazilian_portuguese - 1 fixed, 49 changed by tucalipe (48), fukumori (2)
bulgarian  - 2 fixed by kokobongo (2)
catalan    - 1 fixed, 2 changed by arnaullv (3)
czech      - 1 fixed by Hadez (1)
danish     - 2 fixed, 1 changed by MiR (3)
dutch      - 1 fixed by habell (1)
french     - 1 fixed, 1 changed by Skiper (2)
german     - 1 fixed by Neonox (1)
italian    - 1 fixed by sidew (1)
korean     - 4 fixed by leejaeuk5 (3), darkttd (1)
portuguese - 4 changed by izhirahider (4)
romanian   - 10 fixed by kneekoo (10)
russian    - 1 fixed, 42 changed by DarkFenX (43)
slovenian  - 1 deleted by Necrolyte (1)
spanish    - 1 changed by eusebio (1)
ukrainian  - 19 fixed, 1 deleted, 12 changed by mad (32)
18 years ago
tron fef1922705 (svn r8847) -Fix
There is not much point in hiding a normal 64bit multiplication in a function, so do not do it
18 years ago
tron 84404cf014 (svn r8846) -Fix
Remove confusing superfluous parentheses
18 years ago
tron 426d956367 (svn r8845) -Fix
Remove pointless and out of context comment
18 years ago
Darkvater 9cf01ff432 (svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it. 18 years ago
tron 6206a87bb9 (svn r8843) -Fix
-Fix: Off-by-one error in accessing a buffer (if you start at the second byte you have to subtract one from the size)
Also avoid an unnecessary buffer copy and strlcpy() abuse
NOTE: 0.5 candidate
18 years ago
tron 053e2ddda5 (svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
18 years ago
tron 20336638d5 (svn r8840) -Fix
Remove FIFO and Stack. They have never been used and could not be used anyway because the declarations of some functions are spelled different than the definitions they should correspond to.
Also remove some other unused helpers and related struct attributes.
18 years ago
maedhros 8b6d07cb85 (svn r8838) -Feature: Show newgrf error messages loaded in Action B in the newgrf gui
window. GRFs with an error have a warning symbol shown before the name.
18 years ago
rubidium a2ecc3cc64 (svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p). 18 years ago
KUDr f1ee924fc5 (svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, TRANSPORT_ROAD)' failed (Karsten)
-don't tell that we found destination if the best direction was only guessed
18 years ago
tron 84754e45d6 (svn r8835) -Fix
Remove dead code
18 years ago
tron d1b0dc9cf6 (svn r8834) -Fix
Do not pass something to a function it better could figure out by itself
18 years ago
tron 74fea81167 (svn r8833) -Fix
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
18 years ago
maedhros 7734c3d295 (svn r8831) -Feature: If an action 7/9 leads to skipping the rest of the file, disable the
newgrf if an action 8 hasn't been encountered yet.
18 years ago
maedhros 95ad438f68 (svn r8830) -Feature: Stop loading and disable the current newgrf if a fatal error message
in Action B is encountered. Also be more strict on the values accepted.
18 years ago
tron 7f3657c496 (svn r8829) -Fix
Remove translations which should not be empty
18 years ago
tron 7917738b54 (svn r8828) -Fix
-Regression (r7585): On load calculate the station rectangle for all savegames, not just savegames with at least version 27
18 years ago
belugas 011ef28e47 (svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources.  More to come
18 years ago
peter1138 3d581f4f89 (svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels. 18 years ago
maedhros f91ed92648 (svn r8825) -Fix: Make sure strings read from newgrf files are 0 terminated and 0
terminate them if they aren't, so we don't read beyond the end of the
memory allocated for the line.
18 years ago
Darkvater 2dd9066f8f (svn r8824) -Fix (r8821): don't use MSVC2005 runtime library-only _snwprintf_s function, but use 'insecure/deprecated' version and zero-terminate string ourselves. Thanks for testing glx. 18 years ago
Darkvater fa16e74d01 (svn r8823) -Fix (r8821): wrapping opendir to ottd-specific function failed on non-windows because this wrapper was only active for win32 (thx Rubidium) 18 years ago
tron 27f48c5dda (svn r8822) -Fix
Variable scope, const
18 years ago
Darkvater 7eab669a88 (svn r8821) -Regression: Unable to browse directories on *nix if the filesystem is not in UTF-8 charset and special characters are used. The string passed to opendir() which is UTF-8 was not parsed back to the filesystem format. Use a wrapper called ttd_opendir() instead of redefining opendir itself. 18 years ago
Darkvater 37f14d4444 (svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron. 18 years ago
rubidium af18972b7a (svn r8818) -Codechange: remove the #ifdef _cplusplus remnants. 18 years ago
rubidium 1d95385a97 (svn r8809) -Fix (r8715): accidentally removed a part of an expression. 18 years ago
rubidium c4ff0121c4 (svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators. 18 years ago
Darkvater e8ffb1599c (svn r8807) -Feature: Add support for loading (some of) the TTDP extra chunks mainly list of GRFIDs and TTDP version the game was saved with.
GRFID list is read and active GRFs are loaded with the game if present in the data/ directory.
 TTDP versioning information only works for newer versions, old versions will only give rough information but it's not worth the effort to precisely figure out what bit means what where and when.
18 years ago
Darkvater 33667effcc (svn r8806) -Codechange (r7582): Remove a duplicate append of static GRF's when loading the game and hide the intrinsics of adding elements to the GRFConfig list by using an AppendToGRFConfigList function. 18 years ago
Darkvater 50dbea69d6 (svn r8805) -Codechange (r8757): DO set eol-style and keywords on new files... 18 years ago
tron 0100e94cee (svn r8802) -Fix
-Fix: When inserting an order for a ship while checking the distance between the new order and the order it is inserted after adhere the order types to determine the correct type of destination (i.e. station or depot)
Also do a better job in determining the preceding order
NOTE: 0.5 candidate
18 years ago
tron 8db5c84f67 (svn r8800) -Fix
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
18 years ago
tron 6c5b59b6ec (svn r8799) -Fix
Reduce variable scope
18 years ago
rubidium 66ad0c7d0c (svn r8797) -Fix (8741): the 'drive through station built on town owned road' bit was not set. 18 years ago
tron 38fedf20ce (svn r8796) -Fix
Remove the unused function AllocateStation() which was left over from r8125
18 years ago
tron 186fb6617d (svn r8795) -Fix
Remove the explicit check for buoys when inserting goto station orders.
This is already covered by the preceding OWNER_NONE test.
18 years ago
tron 25a3485e71 (svn r8794) -Fix
Remove the possiblity to take over stations with OWNER_NONE by building a station next to it
-Fix: It was possible to take over buoys by building a station next to them
Also remove the now unnecessary special case which prevented taking over oilrigs
NOTE: 0.5 candidate
18 years ago
glx 8bfc6df882 (svn r8793) -Fix: corrected spelling of real french townnames and 'removed' a duplicate 18 years ago
maedhros 08bad22e4b (svn r8792) -Fix (r6623): Don't check whether a string length is 1 when you already know it isn't. 18 years ago
miham 0d3c89d79a (svn r8791) -Revert: r8790 Committed too much in last commit 18 years ago
miham b77e6235ea (svn r8790) [Namegen] -Revert: r8789 (Tron kinda convinced me it is a bad thing, sorry for it) 18 years ago
miham b980c80ba4 (svn r8789) [Namegen] -Change: Sorted townnameparts for hungarian, and added a few more 18 years ago
miham 7b0370fc61 (svn r8788) [Translations] -Fix: Removed bogus 3sk case from slovenian, as it is handled in WebTranslator2 from now on 18 years ago
bjarni da422574ad (svn r8787) -Change r8771: allow fast aircraft in small airports
We should keep the list in sync with the build command as hacked clients can avoid a block in the GUI only
18 years ago
bjarni d6cb254b96 (svn r8786) -Cleanup: replaced a switch-case to get the right refit command for a certain vehicle type. We have a function to do that 18 years ago
richk edcc1cfd1e (svn r8785) -Fix: Entry point for commuter airport incorrect. 18 years ago
Darkvater 79b4e5523b (svn r8784) -Regression (r7274 most likely): Unable to load TTDP (on *NIX) games because the static buffer used for name conversion is overwritten in the callback function. 18 years ago
bjarni 8175371eee (svn r8783) -Fix r8771: aircraft vehicle subtype and aircraft engine subtype aren't the same (even though they both tell if it's a plane or helicopter) 18 years ago
tron 69bacedab9 (svn r8782) -Fix
Adapt GetClosestStationFromTile() more to the way it is used:
- All but deleted stations get filtered later, so do not include non-deleted station in the first place
- Remove the two parameters, which are the same for all callers
18 years ago
tron 97acc0ff25 (svn r8781) -Fix
A spectator cannot build stations, so do not include a special case for him
18 years ago
richk df183d788e (svn r8780) -Fix: Spelling of CatchmentArea incorrect. 18 years ago
tron e175a85e10 (svn r8779) -Fix
-Codechange: Use a more generic test, which tests the allowed aircraft instead of hardcoding the airport type numbers, to generate station names
18 years ago
tron fbd83baff6 (svn r8778) -Fix
-Codechange: Allow goto station orders to public stations in general, not just oilrigs (though this is the same till now)
18 years ago
bjarni 2841e946af (svn r8777) -Fix: FS#596 Cloning Maglev in UKRS forgets Mail refit
Cloning were unaware that articulated locomotives could refit without refitting the front unit
18 years ago
bjarni 6bbe135446 (svn r8771) -Fix r8343: build aircraft windows will no longer show aircraft that can't use the airport in question
Now it's even better than ever because unless the no jetcrash cheat is enabled, the small airports will not show fast aircraft
18 years ago
bjarni a66176c894 (svn r8770) -Fix r8661: corrected some aircraft sprite placement issues in the depot window 18 years ago
KUDr f6f045055a (svn r8768) -Fix (r8767): VC8 compilation failed 'warning C4146: unary minus operator applied to unsigned type, result still unsigned' 18 years ago
tron 72857162dd (svn r8767) -Fix
-Codechange: Do not hardcode the catchment radius of airports, but hold the information in AirportFTAClass
-Fix (r979): The default AI tested possible airport locations with a fixed catchment radius instead of the radius of the to be built airport
18 years ago
KUDr 3c0b59e46e (svn r8766) -Fix[YAPF]: rail station platform penalty not calculated properly 18 years ago
rubidium c96f7c91e5 (svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code. 18 years ago
miham 3b56c49d6a (svn r8764) -Update: WebTranslator2 update to 2007-02-16 22:03:24
afrikaans  - 1 changed by TrueTenacity (1)
brazilian_portuguese - 1 fixed, 1 changed by fukumori (2)
bulgarian  - 4 fixed by groupsky (4)
dutch      - 3 fixed by habell (3)
esperanto  - 3 fixed by LaPingvino (3)
finnish    - 5 fixed by kerba (5)
icelandic  - 15 fixed, 30 changed by scrooge (45)
italian    - 3 fixed by sidew (3)
norwegian_bokmal - 13 fixed by oletk (13)
turkish    - 3 fixed by jnmbk (3)
18 years ago
tron 7a9f5911d3 (svn r8763) -Fix
Don't do bogus initialisations and prefer simpler code
18 years ago
celestar 80912d2e7e (svn r8759) -Feature: Allow airports to have up to 4 entry points depending on approach direction. Note: they're not yet used, but will be soon 18 years ago
truelight 1f9fdc8bc1 (svn r8757) -Add: added libtimidity music driver (it is a nice small library simular to timidity via extmidi)
[PSP] -Add: added PSP specific code for libtimidity. libtimidity code is based on the work of Turulo. Tnx a bunch!
18 years ago
truelight b18c5a19db (svn r8756) [PSP] -Fix: made the dedicated code compile with PSP. It is almost UNIX, just it needs more includes ;)
(or more, it compiles, if it works is a whole other story ;))
18 years ago
tron 128caa5050 (svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
18 years ago
tron 2bd7e64850 (svn r8754) -Fix
Do not handle a special case for goto hangar orders to oilrigs - they do not have a hangar anyway
18 years ago
belugas 8a466c2e2f (svn r8753) -Regression (r8455): Do not unilateraly decide that this engine is a single-headed. Only do it if it previously had no power and that now there is. Or something... 18 years ago
KUDr c85d72248f (svn r8751) -Fix [lang]: deleted .news and .subs strings causing lang compilation error 18 years ago
KUDr c680266b50 (svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation error under Win32. Changed to AIRPLANES 18 years ago
bjarni a7c92492df (svn r8749) -Regression r8331: fixed signed/unsigned issue that could create too many lines in build vehicle windows and crash the game 18 years ago
tron e233967019 (svn r8748) -Fix
-Codechange: Do not hardcode the airports with a short airstrip anymore, but make it a flag in AirportFTAClass
18 years ago
tron 16df378623 (svn r8747) -Fix
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
18 years ago
bjarni ab08096aab (svn r8746) -Regression r8331: build train window could sort incorrectly by EngineID with certain newGRF sets 18 years ago
truelight d53613c8f2 (svn r8745) [PSP] -Add: added a CSleep() for PSP 18 years ago
celestar d9f034bd87 (svn r8744) -Fix(r654/2105): Call GetFirstVehicleInChain only for trains, and assert the vehicle type in that function. Not a critical error, but it does increase game performance by up to 10% when playing a large game (many vehicles) with aircraft/road vehicle newgrfs loaded. 18 years ago
tron e62036f5e9 (svn r8743) -Fix
-Codechange: Add a Z adjustment attribute for helicopter pads to AirportFTAClass to get rid of some special cases for oilrigs and heliports
18 years ago
miham 0c330c1b1b (svn r8742) -Update: WebTranslator2 update to 2007-02-15 08:05:58
american   - 3 fixed by WhiteRabbit (3)
brazilian_portuguese - 2 fixed, 7 changed by tucalipe (9)
czech      - 3 fixed, 3 deleted, 1 changed by Hadez (7)
estonian   - 3 fixed by vermon (3)
french     - 3 fixed, 13 changed by Skiper (16)
german     - 3 fixed by moewe2 (3)
icelandic  - 122 fixed, 11 changed by scrooge (133)
polish     - 3 fixed by meush (3)
portuguese - 3 fixed by izhirahider (3)
simplified_chinese - 3 fixed by Fishingsnow (3)
slovenian  - 3 fixed, 1 deleted by Necrolyte (4)
spanish    - 4 fixed by eusebio (4)
swedish    - 4 fixed by daishan (4)
traditional_chinese - 3 fixed by sam0737 (3)
18 years ago
rubidium dcc7dd936e (svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more robust and add roadstops.grf to the list of required grfs. 18 years ago
Darkvater 3053109c63 (svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx) 18 years ago
Darkvater 4c0f91e060 (svn r8739) -Codechange: Update the oldloader debug levels to be more in spec with the guidelines in debug.h. 18 years ago
Darkvater 89172eb054 (svn r8738) -Fix: TTDP games have all tiles touching the water marked as MP_WATER, we do not (tiles with one corner, or steep tiles), so check and fix these tiles. 18 years ago
Darkvater 92faa8d80e (svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for TTD(P) games, failing to load them 18 years ago
miham a5462fbe50 (svn r8736) -Update: WebTranslator2 update to 2007-02-14 19:54:03
afrikaans  - 114 fixed by TrueTenacity (114)
bulgarian  - 5 fixed by kokobongo (5)
catalan    - 3 fixed by arnaullv (3)
dutch      - 3 fixed by habell (3)
russian    - 3 fixed by DarkFenX (3)
ukrainian  - 3 fixed, 1 deleted, 12 changed by mad (16)
18 years ago
rubidium a2999dadc9 (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. 18 years ago
celestar ca310e5a26 (svn r8733) -Fix(r8705): Forgot to change some more places where airport blocks are stored 18 years ago
celestar bde06e75b4 (svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts. 18 years ago
rubidium a374caf51d (svn r8730) -Codechange: more replacements of magic numbers by enums and removal of some (by now) redundant comments. 18 years ago
miham 18f88c6ad9 (svn r8729) [Translations] -Fix: removed dead cases from czech language 18 years ago
miham 12756027fd (svn r8728) -Update: WebTranslator2 update to 2007-02-14 10:40:39
afrikaans  - 112 fixed, 3 changed by TrueTenacity (115)
catalan    - 1 fixed by arnaullv (1)
czech      - 3 deleted by Hadez (3)
slovak     - 64 changed by lengyel (64)
traditional_chinese - 8 changed by thomasau (8)
ukrainian  - 9 changed by mad (9)
18 years ago
maedhros f7db8b4a61 (svn r8727) -Cleanup (r8366): Remove BIGMULSS64 since it isn't used any more. 18 years ago
rubidium ebff8b09fc (svn r8726) -Codechange: bools are 1 or 0 according to the C++ standard and refactor RoadStop::AllocateBay to remove a loop condition. Suggestions by Tron. 18 years ago
rubidium 93b78f31fb (svn r8725) -Fix (r8712): test the first bit of the bitmask, not the nth, as we are shifting the bitmask. 18 years ago
rubidium 3969f10b53 (svn r8723) -Codechange: replace yet another couple of magic numbers with enums. 18 years ago
rubidium da705e8167 (svn r8721) -Fix (8715): road vehicles could not turn around properly 18 years ago
rubidium 96b43da866 (svn r8719) -Fix: some strings have an empty translation where it isn't empty in english. 18 years ago
rubidium b5dade8098 (svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p. 18 years ago
rubidium fd645aa845 (svn r8712) -Codechange/cleanup: replace 'magic' constants with enums, use proper types instead of byte, uint etc., give variables more descriptive names and add some comments. 18 years ago
celestar 72e74c29d4 (svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed. 18 years ago
celestar bf147e395e (svn r8708) -Codechange(r8514): No need to use "this->" in methods 18 years ago
celestar a89f2fd610 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 18 years ago
celestar 82c696688c (svn r8705) -Codechange: Increased the number of airport blocks to 64. This involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums 18 years ago