Commit Graph

734 Commits

Author SHA1 Message Date
peter1138 6040e559ce (svn r9069) -Codechange: Change a do ... while loop with a for loop. This fixes some warning that I never got anyway... 2007-03-08 19:23:49 +00:00
rubidium ce919e8c71 (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). 2007-03-08 16:27:54 +00:00
truelight aca3fb2b6e (svn r9067) -Fix [FS#637]: don't make owner signs transparent, as then you loose the information who it owns 2007-03-08 15:50:07 +00:00
truelight 7b153e6356 (svn r9066) -Fix [FS#638]: store the owner of a statue, so when it gets removed, the town is notified of it 2007-03-08 14:34:32 +00:00
rubidium c517f8fd6e (svn r9065) -Fix: possible dereference of NULL pointer. 2007-03-08 13:54:19 +00:00
truelight 70623e3488 (svn r9064) -Fix [FS#663]: don't keep on scrolling for non-numeric values in settings, but require reclick 2007-03-08 12:57:08 +00:00
celestar 0fd907e0ec (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 2007-03-08 12:26:31 +00:00
rubidium c89379f7eb (svn r9061) -Fix [r9038, FS#668]: passwords are send when the server is in the 'authorizing' state, not 'inactive'. 2007-03-08 09:46:44 +00:00
Darkvater 2536a14abd (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. 2007-03-07 18:58:28 +00:00
miham 5e1351b377 (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)
2007-03-07 17:42:09 +00:00
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 2007-03-07 12:11:48 +00:00
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 2007-03-07 11:47:46 +00:00
glx 0b5cbecd3d (svn r9048) -Fix r9040: non-bool used as bool 2007-03-06 23:27:14 +00:00
rubidium 1e8a2e19b3 (svn r9043) -Fix [FS#652]: the personal (.openttd) directories were hidden in the load/save directory listings (stepancheg). 2007-03-06 22:37:04 +00:00
belugas 7a58642b6c (svn r9042) -Add : Maedhros as a developper 2007-03-06 22:16:43 +00:00
bjarni f61f1962c5 (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
2007-03-06 22:11:58 +00:00
bjarni a24913d461 (svn r9039) -Fix r9034: missed the _pause in cocoa_v.mm 2007-03-06 22:01:59 +00:00
rubidium a2b5b74b83 (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. 2007-03-06 22:00:42 +00:00
maedhros 68020bfa6d (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.
2007-03-06 22:00:13 +00:00
rubidium f1abcf0ff7 (svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h. 2007-03-06 21:18:25 +00:00
truelight 621ea1d863 (svn r9035) -Fix [SunOS]: Solaris sometimes has pid_t defined as long. Fix warnings in those cases 2007-03-06 21:14:48 +00:00
truelight 43133c766c (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.....)
2007-03-06 20:59:52 +00:00
maedhros 1c7df202c6 (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.
2007-03-06 19:33:28 +00:00
maedhros 60703d3691 (svn r9029) -Fix (r7326): Only call the gradual loading amount callback if the bit for it is set in the vehicle's callbackmask. 2007-03-06 19:12:56 +00:00
rubidium b5f418d9f1 (svn r9027) -Fix [FS#664]: desync caused by buffer overrun. 2007-03-06 18:03:06 +00:00
richk 4b2ff65e0e (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)
2007-03-05 23:00:43 +00:00
miham 71e4bb484c (svn r9021) [Translations] -Fix: removed empty strings once again. 2007-03-05 20:00:43 +00:00
miham 3859bde772 (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)
2007-03-05 18:57:19 +00:00
truelight 657be6d2d0 (svn r9019) -Fix: use <> for system-headers 2007-03-05 18:00:18 +00:00
miham 53caedd0bf (svn r9018) -Change: added SunOS as OS name in the quit dialog 2007-03-05 17:05:41 +00:00
celestar f8e7d08885 (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 :)
2007-03-05 09:35:45 +00:00
tron e092b2d8c7 (svn r9015) -Fix
NL at EOF
2007-03-05 05:03:28 +00:00
tron 89d03d004a (svn r9014) -Fix
Improve translation using gender tags
2007-03-05 05:02:24 +00:00
tron 8dfe956a37 (svn r9013) -Fix
Remove incorrect empty translation
2007-03-05 05:01:06 +00:00
Darkvater 915ae8ffc2 (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)
2007-03-05 00:45:56 +00:00
Darkvater aea64adbb9 (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 2007-03-05 00:34:48 +00:00
Darkvater b3f59814de (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. 2007-03-04 22:14:32 +00:00
miham ebe9bd4539 (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)
2007-03-04 08:05:43 +00:00
Darkvater 0d643c624b (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. 2007-03-04 00:49:40 +00:00
rubidium ead8c82ab6 (svn r9002) -Update: remove strings removed in r9001 from languages other than English. 2007-03-03 22:15:37 +00:00
rubidium 35fde14a52 (svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles. 2007-03-03 22:03:15 +00:00
rubidium cf47f2a856 (svn r9000) -Fix [FS#581, r2572]: new locomotive names were not announced in the news, it said "new railway locomotive available - railway locomotive". 2007-03-03 20:43:52 +00:00
rubidium 2061d6af27 (svn r8999) -Fix [FS#450]: do not select a disabled platform length/number of track count when going out of drag-drop mode. 2007-03-03 20:43:50 +00:00
Darkvater e33a8d3caa (svn r8995) -Fix (FS#620, r8464): revert properly (reversion of r4322) internal speeds 2007-03-03 13:36:25 +00:00
Darkvater b024134c6a (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. 2007-03-03 13:13:25 +00:00
peter1138 db2f57e3a1 (svn r8990) -Fix: more indenting and variable scoping 2007-03-03 10:48:25 +00:00
peter1138 8f2a554864 (svn r8989) -Fix: more indenting and variable scoping 2007-03-03 09:58:20 +00:00
peter1138 55d544d47e (svn r8988) -Fix: Indenting, variable scope, variable type and minor duffage 2007-03-03 09:40:34 +00:00
belugas b71354dc40 (svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style. 2007-03-03 04:04:22 +00:00
rubidium 6887fbbaaf (svn r8980) -Fix (FS#656): the industry list should also be (re)set when the number of industries is 0. 2007-03-02 19:57:55 +00:00
rubidium 517f2bcc57 (svn r8979) -Fix (r8978): unsigned vs signed comparisons. 2007-03-02 18:57:54 +00:00
richk d11e36e477 (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. :)
2007-03-02 18:49:11 +00:00
Darkvater 0961e1bc56 (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. 2007-03-02 17:54:52 +00:00
Darkvater 991fbeaefa (svn r8976) -Codechange: Reinitialize all engines after grf files have been reloaded/changed. 2007-03-02 15:17:48 +00:00
Darkvater baf79a6a85 (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. 2007-03-02 15:08:28 +00:00
Darkvater c0971bafdc (svn r8974) -Fix: [win32] Define a win32 target platform ourselves so that we don't conflict with Vista Platform SDK (boekabart) 2007-03-02 15:02:12 +00:00
celestar f621608f7d (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. 2007-03-02 12:01:24 +00:00
peter1138 879eca8e23 (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. 2007-03-02 11:36:34 +00:00
rubidium ea319b78f8 (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
2007-03-02 01:17:11 +00:00
truelight 322953ad2e (svn r8967) -Fix (OSX): silent the warnings in cocoa_v.mm about deprecated stuff.. we know that\! 2007-03-02 00:36:16 +00:00
rubidium 08973ba8eb (svn r8966) -Codechange: replace some if-cascades by switches. 2007-03-02 00:17:35 +00:00
rubidium cd8090f3bd (svn r8964) -Codechange: use grf_load_string to read action 8 strings instead of trying to do the same manually. 2007-03-01 23:37:05 +00:00
miham c53f174005 (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)
2007-03-01 20:12:41 +00:00
rubidium c8faa6bee2 (svn r8955) -Fix: crash on loading savegames with GRFs that do not have their GRF info/name set. 2007-03-01 18:28:55 +00:00
rubidium 05fe6d2362 (svn r8954) -Codechange: remove direct map accesses from non-map-accessor headers. 2007-03-01 13:35:40 +00:00
rubidium ef9b0bdd88 (svn r8953) -Codechange: make the names of enums of WaterTileType consistent with respect to RailTileType and RoadTileType. 2007-03-01 13:27:51 +00:00
belugas 978d7da818 (svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style. 2007-03-01 01:24:44 +00:00
rubidium 66487d59fd (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. 2007-03-01 00:58:09 +00:00
maedhros 469fbc912c (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.
2007-02-28 17:59:05 +00:00
maedhros aadd8a4b44 (svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can be used for more than just the gradual loading status. 2007-02-28 17:18:36 +00:00
maedhros f865f0a445 (svn r8944) -Codechange: Move the enum describing the bitmask of Engine.flags to engine.h and give the enum values better names. 2007-02-28 17:06:22 +00:00
maedhros 8108cbbe3c (svn r8943) -Fix (r5338): [NewGRF] Fix support for vehicle variable 48, which just returns Engine[id].flags 2007-02-28 10:40:34 +00:00
rubidium 4908115355 (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. 2007-02-27 23:36:28 +00:00
KUDr fbd6a88d02 (svn r8933) -Fix [Win64]: rdtsc now uses intrinsic on VC8 (michi_cc) 2007-02-27 23:12:45 +00:00
rubidium 8877ef7478 (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).
2007-02-27 16:18:31 +00:00
Darkvater 8eced44506 (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) 2007-02-27 16:07:04 +00:00
Darkvater c5e59b8a61 (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. 2007-02-27 16:05:49 +00:00
Darkvater 9cbc0e4ade (svn r8918) -Revert r8914 as the inverted files have been committed not the correct one. 2007-02-27 16:05:20 +00:00
Darkvater 44879ab2c5 (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. 2007-02-27 15:17:06 +00:00
rubidium 33771b4f25 (svn r8912) -Codechange: coding style cleanup and moving of two global externs into the functions that use them. 2007-02-26 22:32:21 +00:00
rubidium 413853552c (svn r8911) -Cleanup: fixup comments about the RoadVehicleStates and remove two unused enums. 2007-02-26 22:25:18 +00:00
rubidium aaeeef3d88 (svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header. 2007-02-26 18:25:03 +00:00
rubidium f3f966e616 (svn r8907) -Fix (r3281): reading from an unitialized variable. 2007-02-26 00:41:24 +00:00
rubidium 34154aa89e (svn r8906) -Feature: translation dependant formatting of dates. 2007-02-26 00:36:57 +00:00
peter1138 8df0b8a685 (svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides... 2007-02-25 14:33:43 +00:00
tron e981e0a553 (svn r8901) -Fix
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Trackdir, TrackdirBits) and DECLARE_ENUM_AS_BIT_INDEX() altogether
2007-02-25 11:59:26 +00:00
tron 311af1a956 (svn r8900) -Fix
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Track, TrackBits)
2007-02-25 11:49:43 +00:00
tron 3ce4baa9fc (svn r8899) -Fix
Remove the unused second parameter from GetTileRailType()
2007-02-25 11:36:19 +00:00
tron 1ce43c1a37 (svn r8897) -Fix
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
2007-02-25 10:49:13 +00:00
tron 696b895b77 (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.
2007-02-25 10:25:25 +00:00
tron 1864d28cb8 (svn r8894) -Fix
Slightly simplify the control flow of TrainController()
2007-02-25 09:47:46 +00:00
tron e949a956bd (svn r8893) -Fix
variable scope, const, misc.
2007-02-25 09:27:03 +00:00
rubidium 9c6957b457 (svn r8892) -Fix (r8879): swapped the eye colour and eyebrow bits. 2007-02-25 09:06:13 +00:00
peter1138 4c4b035175 (svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo mapping is now dealt with only in NewGRF code, on load where possible. 2007-02-24 23:36:40 +00:00
peter1138 29c8142784 (svn r8890) -Codechange: (NewGRF) add cargo translation support to engine var 47 2007-02-24 23:20:21 +00:00
rubidium 5aaff3b5a1 (svn r8889) -Fix (r8880): a CursorID is not a SpriteID. 2007-02-24 22:35:42 +00:00
peter1138 5dcd88c59c (svn r8888) -Codechange: Replace hardcoded default cargo bitmasks with a list of cargo labels. 2007-02-24 22:01:18 +00:00
KUDr b3822a22d9 (svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto 2007-02-24 19:43:50 +00:00
peter1138 a23b4594ed (svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only. 2007-02-24 19:36:47 +00:00
peter1138 0cf5ebee79 (svn r8885) -Codechange: (NewGRF) If a default cargo type property is out of range then choose the cargo type from its refit list. 2007-02-24 19:26:45 +00:00