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.
2007-03-03 13:13:25 +00:00
peter1138
aa9bd2e028
(svn r8990) -Fix: more indenting and variable scoping
2007-03-03 10:48:25 +00:00
peter1138
a712d97c79
(svn r8989) -Fix: more indenting and variable scoping
2007-03-03 09:58:20 +00:00
peter1138
a1f44413b2
(svn r8988) -Fix: Indenting, variable scope, variable type and minor duffage
2007-03-03 09:40:34 +00:00
belugas
5792aa85c7
(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
502ec1b672
(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
5ec31ebc2b
(svn r8979) -Fix (r8978): unsigned vs signed comparisons.
2007-03-02 18:57:54 +00:00
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. :)
2007-03-02 18:49:11 +00:00
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.
2007-03-02 17:54:52 +00:00
Darkvater
e3dff16b21
(svn r8976) -Codechange: Reinitialize all engines after grf files have been reloaded/changed.
2007-03-02 15:17:48 +00:00
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.
2007-03-02 15:08:28 +00:00
Darkvater
e514d3972f
(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
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.
2007-03-02 12:01:24 +00:00
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.
2007-03-02 11:36:34 +00:00
truelight
a8fde998dd
(svn r8970) -Fix (win32): suppress the warnings coming from the DirectX includes for GCC 4.0+. Also clearify commit r8968 in-code
2007-03-02 01:18:12 +00:00
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
2007-03-02 01:17:11 +00:00
truelight
f414b1d8e2
(svn r8968) -Fix (win32): silent g++ 4.0+ warnings about breaking strict-aliasing
2007-03-02 00:45:08 +00:00
truelight
88d2a89422
(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
d782a74cca
(svn r8966) -Codechange: replace some if-cascades by switches.
2007-03-02 00:17:35 +00:00
rubidium
8aacd9874f
(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
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)
2007-03-01 20:12:41 +00:00
belugas
639080ed05
(svn r8956) -Documentation : complete reference of m6 usage is now available.
...
A few little cleanups here and there.
2007-03-01 20:10:49 +00:00
rubidium
c7f9ee6914
(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
dd403b586d
(svn r8954) -Codechange: remove direct map accesses from non-map-accessor headers.
2007-03-01 13:35:40 +00:00
rubidium
0945c6950b
(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
a19dd20ebb
(svn r8951) -Cleanup: Another bunch of re-formating and re-ordering.
...
Among which, tiles area now read m1..m6, while the bits are always enumerated from 7 to 0
Hoping it will stay that way...
2007-03-01 04:24:19 +00:00
belugas
240cbd4dd2
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-03-01 01:24:44 +00:00
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.
2007-03-01 00:58:09 +00:00
glx
51d2dfa05d
(svn r8948) -Change: some sed implementations have problems with \n so rewrite r8832 using awk
2007-02-28 23:52:04 +00:00
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.
2007-02-28 17:59:05 +00:00
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.
2007-02-28 17:18:36 +00:00
maedhros
b9e079cff3
(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
e1748afd4f
(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
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.
2007-02-27 23:36:28 +00:00
KUDr
a7d9cbc151
(svn r8933) -Fix [Win64]: rdtsc now uses intrinsic on VC8 (michi_cc)
2007-02-27 23:12:45 +00:00
Darkvater
1168c5beb3
(svn r8929) -Codechange: [win32] Give the installer a slightly more verbose link at the final screen and also copy any heightmaps to the desination directory.
2007-02-27 22:11:12 +00:00
Darkvater
ff9a02c1c8
(svn r8927) -Codechange: [win32] Update the installer to use the new paths after the makefilerewrite and add roadstops.grf to the uninstaller.
2007-02-27 17:04:22 +00:00
Darkvater
116fa34316
(svn r8926) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, etc.
2007-02-27 16:51:49 +00:00
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).
2007-02-27 16:18:31 +00:00
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)
2007-02-27 16:07:04 +00:00
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.
2007-02-27 16:05:49 +00:00
Darkvater
60866482ed
(svn r8918) -Revert r8914 as the inverted files have been committed not the correct one.
2007-02-27 16:05:20 +00:00
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.
2007-02-27 15:17:06 +00:00
rubidium
d2a36e4c2d
(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
01db4b646e
(svn r8911) -Cleanup: fixup comments about the RoadVehicleStates and remove two unused enums.
2007-02-26 22:25:18 +00:00
rubidium
191a739d31
(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header.
2007-02-26 18:25:03 +00:00
rubidium
67201b129d
(svn r8907) -Fix (r3281): reading from an unitialized variable.
2007-02-26 00:41:24 +00:00
rubidium
58f2b636b4
(svn r8906) -Feature: translation dependant formatting of dates.
2007-02-26 00:36:57 +00:00
peter1138
7669f63d4e
(svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides...
2007-02-25 14:33:43 +00:00
tron
87226c519a
(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