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
tron
12b1804d4e
(svn r8884) -Fix
...
Replace SetSpeedLimitOnBridge() by something simpler
2007-02-24 18:44:30 +00:00
maedhros
e3f60f716c
(svn r8882) -Cleanup (r8881): Remove obsolete strings.
2007-02-24 16:37:06 +00:00
maedhros
8b6350d3a3
(svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly.
2007-02-24 16:34:37 +00:00
rubidium
8ac0e7be21
(svn r8880) -Codechange: make anim cursors an array of structs.
2007-02-24 15:05:14 +00:00
rubidium
4fd8926e9d
(svn r8879) -Codechange: make DrawPlayerFace easier to read.
2007-02-24 14:53:32 +00:00
tron
caa129958d
(svn r8878) -Fix
...
-Fix: Do a better job when checking the parameters of CmdMoveRailVehicle()
NOTE: 0.5 candidate
2007-02-24 14:36:14 +00:00
rubidium
6ddef3f743
(svn r8877) -Cleanup: remove already implemented @todo
2007-02-24 12:50:05 +00:00
tron
d3b29bcacb
(svn r8876) -Fix
...
Replace tests with magic numbers by a simple extraction template for command parameters
2007-02-24 09:42:39 +00:00
tron
1d1121f85a
(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)
2007-02-24 06:46:20 +00:00
KUDr
029ceda0f1
(svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche)
2007-02-24 00:17:46 +00:00
rubidium
433b8054e9
(svn r8868) -Fix (r8715): road vehicles could not overtake anymore in some directions (mart3p).
2007-02-23 22:14:14 +00:00
KUDr
9cdf6fdc7e
(svn r8867) -Fix(r8866): revert yapf_costrail.hpp commited by mistake, helpers.hpp had wrong line ending
2007-02-23 21:36:43 +00:00
KUDr
f3d5fda36c
(svn r8866) -Doc: added more comments to template struct MakeEnumPropsT
2007-02-23 21:29:50 +00:00
peter1138
0cf592b17a
(svn r8865) -Codechange: (NewGRF) Ignore 1 byte action 0s during safety check
2007-02-23 21:03:57 +00:00
KUDr
dac3cd622f
(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)
2007-02-23 20:51:10 +00:00
peter1138
20405f56b4
(svn r8863) -Fix: prefix engine_custom_sprites with _
2007-02-23 19:27:31 +00:00
belugas
6dbf9f2f41
(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
...
Some documentation addition, when i can easily supply them
2007-02-23 18:55:07 +00:00
Darkvater
1bbbbeeef1
(svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
2007-02-23 12:56:10 +00:00
belugas
6d199fcdb7
(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-02-23 11:50:43 +00:00
peter1138
7e73413709
(svn r8858) -Codechange: Replace magic number test with class method for determining if a cargo is valid/active.
2007-02-23 09:56:20 +00:00
celestar
0ed4b64e64
(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).
2007-02-23 08:37:33 +00:00
tron
798c95a228
(svn r8856) -Fix
...
Missing */ (r8853)
2007-02-23 08:19:24 +00:00
tron
9cbc49b65b
(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
2007-02-23 08:03:30 +00:00
belugas
8ace4dd25c
(svn r8854) -Fix(r8853): Ctrl+s (save) without Ctrl does not produce desired result...
2007-02-23 02:18:17 +00:00
belugas
a723770836
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
2007-02-23 01:48:53 +00:00
rubidium
202702c007
(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.
2007-02-23 00:17:46 +00:00
rubidium
dcb217a6ac
(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority.
2007-02-23 00:10:16 +00:00
peter1138
89613b6cc4
(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.
2007-02-22 22:53:49 +00:00
peter1138
6062004960
(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping tables with dynamically generated data. Change associated code to use new functions.
2007-02-22 22:09:51 +00:00
miham
4f41a8a5e2
(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)
2007-02-22 19:14:43 +00:00
tron
2e4844abad
(svn r8847) -Fix
...
There is not much point in hiding a normal 64bit multiplication in a function, so do not do it
2007-02-22 19:05:26 +00:00
tron
8b94d4df22
(svn r8846) -Fix
...
Remove confusing superfluous parentheses
2007-02-22 18:44:42 +00:00
tron
17dd1b7126
(svn r8845) -Fix
...
Remove pointless and out of context comment
2007-02-22 18:34:57 +00:00
Darkvater
31be3c6fac
(svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it.
2007-02-22 16:16:44 +00:00
tron
c834320611
(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
2007-02-22 15:01:38 +00:00
tron
103d119c51
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
2007-02-22 08:43:02 +00:00
tron
0d041a87cc
(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.
2007-02-22 06:57:21 +00:00
maedhros
f2d63dcecf
(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.
2007-02-21 23:18:08 +00:00
rubidium
fd4a0dafc2
(svn r8837) -Fix [FS#626]: drive through stations did not connect to neighbouring roads (mart3p).
2007-02-21 22:02:10 +00:00
KUDr
f24122ba3d
(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
2007-02-21 21:56:07 +00:00
tron
0b536291e2
(svn r8835) -Fix
...
Remove dead code
2007-02-21 20:05:05 +00:00
tron
b3d93e3aa2
(svn r8834) -Fix
...
Do not pass something to a function it better could figure out by itself
2007-02-21 19:49:18 +00:00
tron
f716c0b30f
(svn r8833) -Fix
...
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
2007-02-21 19:46:37 +00:00
maedhros
9907e496b1
(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.
2007-02-21 17:54:30 +00:00
maedhros
61fa3909f2
(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.
2007-02-21 17:20:44 +00:00
tron
62ff0ab073
(svn r8829) -Fix
...
Remove translations which should not be empty
2007-02-21 08:32:36 +00:00