frosch
abe4692da2
(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
...
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
Note: It is intentional that you cannot control refittability by CB 36.
2009-02-21 12:52:41 +00:00
frosch
9eb880ab43
(svn r15540) -Fix: Testing of 'only_this' in CmdRefitRoadVeh() could be skipped by 'continue'.
2009-02-21 11:54:25 +00:00
frosch
0e4a490a92
(svn r15539) -Fix: If an aircraft cannot carry any available cargo, it should not be available either instead of falling back to passenger/mail. Just like the other vehicle types also do.
2009-02-21 11:50:17 +00:00
yexo
598d20eedc
(svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui.
2009-02-21 02:34:53 +00:00
rubidium
057ceec51c
(svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network.
2009-02-21 00:47:59 +00:00
glx
85ea21a5d0
(svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs
2009-02-21 00:43:18 +00:00
frosch
8eb906dda9
(svn r15534) -Codechange: Rename some variables.
2009-02-20 23:21:04 +00:00
rubidium
1f028894b5
(svn r15532) -Fix (r15525): don't try to load (and forget) AI data from a non-existing AI when joining a server. In other words: you can join network servers again.
2009-02-20 21:05:27 +00:00
yexo
310446d448
(svn r15531) -Fix (r15467): AIs were stopped at every error, whether they caught it or not.
2009-02-20 13:39:18 +00:00
yexo
d9caae1635
(svn r15530) -Fix (r15519): The AIWaypoint classes were not exported to squirrel.
2009-02-20 10:03:16 +00:00
rubidium
e3ac127617
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
2009-02-20 00:03:29 +00:00
yexo
5223212624
(svn r15528) -Fix (r15525): Check should be the other way around (thanks SmatZ).
2009-02-20 00:02:25 +00:00
yexo
14f6bd6ce1
(svn r15527) -Fix (r15526): A ')' too much.
2009-02-19 23:22:31 +00:00
yexo
05856bf05f
(svn r15526) -Add [NoAI]: Support for conditional orders.
2009-02-19 23:12:57 +00:00
yexo
8d4fed85e9
(svn r15525) -Fix: Don't try to find the AIs the server runs when joining a mp server.
2009-02-19 23:10:32 +00:00
yexo
157bf66b01
(svn r15524) -Add [NoAI]: AIEngine::GetPower, AIEngine::GetWeight and AIEngine::GetMaxTractiveEffort.
2009-02-19 19:44:19 +00:00
translators
581c0a9a5d
(svn r15523) -Update: WebTranslator2 update to 2009-02-19 16:58:17
...
afrikaans - 3 fixed, 8 changed by Ludslad (11)
estonian - 14 fixed by t2t2 (14)
latvian - 1 changed by v3rb0 (1)
luxembourgish - 336 fixed by Gubius (336)
2009-02-19 16:58:24 +00:00
rubidium
02c52430c8
(svn r15521) -Codechange: add helper function to get the display tractive effort of a vehicle.
2009-02-19 09:45:44 +00:00
yexo
9a507acf37
(svn r15520) -Cleanup [NoAI]: Fix some typos, unify the comment style and update some documentation since a few enums have been renamed.
2009-02-19 09:01:34 +00:00
yexo
69df9f2787
(svn r15519) -Add [NoAI]: support for waypoints by adding AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList.
2009-02-19 07:40:08 +00:00
rubidium
29173de379
(svn r15518) -Fix [FS#2631]: use distance to closest station tile as estimate for YAPF too (NPF already does so). This makes it behave 'better' with wide stations.
2009-02-19 00:15:36 +00:00
frosch
8aab3b09f5
(svn r15517) -Fix [FS#2642](r6455): Wagonoverrides and articulated engine parts use the colour scheme of the engine, but not its recolour callback, nor its 2CC flag. Same applies to roadvehicles.
2009-02-18 20:40:24 +00:00
frosch
72c632742a
(svn r15516) -Fix (r10097): Livery overrides for articulated parts of roadvehicles were not applied.
2009-02-18 20:35:02 +00:00
translators
993f704eb1
(svn r15515) -Update: WebTranslator2 update to 2009-02-18 18:31:54
...
afrikaans - 10 fixed, 1 changed by Ludslad (11)
brazilian_portuguese - 6 fixed by ferrerow (6)
bulgarian - 11 fixed by Ar4i (11)
hungarian - 13 changed by alyr (13)
indonesian - 3 fixed by adjayanto (3)
japanese - 19 fixed by ickoonite (19)
latvian - 8 fixed by silentKnight (8)
lithuanian - 52 fixed by Enternald (52)
luxembourgish - 70 fixed by Gubius (70)
romanian - 23 changed by kkmic (23)
russian - 14 fixed by Smoky555 (14)
slovak - 1 fixed by James (1)
swedish - 48 fixed by giddorah (48)
welsh - 282 fixed, 2 changed by PlayDead (284)
2009-02-18 18:32:10 +00:00
rubidium
2b8dd76cfa
(svn r15514) -Fix: make the join/spectate command require to be connected to a network game; in SP it could lead to crashes.
2009-02-18 15:17:27 +00:00
peter1138
3bafe9b0e2
(svn r15513) -Cleanup: Unavailable varaction variable value does not matter, but at least it can be consistent.
2009-02-18 09:14:41 +00:00
peter1138
f1620f6984
(svn r15512) -Cleanup: Codestyle fixes.
2009-02-18 09:10:02 +00:00
yexo
43d80ce6f6
(svn r15511) -Fix [FS#2641] (r15190): Generating a map with the original map generator with freeform edges on resulted in an assert.
2009-02-17 20:33:13 +00:00
translators
a15b98c5cc
(svn r15510) -Update: WebTranslator2 update to 2009-02-17 17:50:34
...
croatian - 22 fixed by tifached (22)
czech - 20 fixed by joeprusa (19), miris2009 (1)
english_US - 81 changed by WhiteRabbit (81)
hungarian - 1 changed by alyr (1)
korean - 3 fixed by darkttd (3)
latvian - 8 fixed by Reinis (5), waste (3)
luxembourgish - 50 fixed by Gubius (50)
norwegian_bokmal - 60 fixed by khh (60)
russian - 6 fixed by MajestiC (6)
slovak - 49 fixed by James (49)
swedish - 145 fixed by Andreas (9), giddorah (136)
turkish - 3 fixed by Emin (3)
welsh - 76 fixed by PlayDead (76)
2009-02-17 17:50:53 +00:00
smatz
af90d021f4
(svn r15509) -Codechange: move definition of some Window methods to class definition
2009-02-17 12:41:29 +00:00
smatz
d6d2da171f
(svn r15508) -Fix: three header files had incorrect 'anti-multiple-inclusion' header
2009-02-17 02:08:53 +00:00
smatz
4882214646
(svn r15507) -Update (r15506): rename strings in other languages too
2009-02-17 00:30:59 +00:00
smatz
cb13180774
(svn r15506) -Codechange: rename ScenarioEditorTownGenerationWindow to FoundTownWindow
2009-02-17 00:21:08 +00:00
smatz
b8438555df
(svn r15505) -Codechange: pass name of new town as parameter to CMD_BUILD_TOWN
2009-02-16 23:23:33 +00:00
rubidium
9d3a8e11bd
(svn r15501) -Document: the changes made over the last months
2009-02-16 21:46:23 +00:00
smatz
b83b58dd54
(svn r15500) -Fix (r12648): pre-0.5 OTTD stored new_nonstop and full_load_any in a different way, savegame conversion wasn't working for them
2009-02-16 21:43:44 +00:00
smatz
91d6c1bb31
(svn r15499) -Fix (r15340): the default town layout was changed
2009-02-16 20:17:07 +00:00
translators
6296973c43
(svn r15498) -Update: WebTranslator2 update to 2009-02-16 18:45:15
...
catalan - 2 changed by arnaullv (2)
dutch - 3 fixed by Excel20 (3)
english_US - 7 fixed by WhiteRabbit (7)
german - 3 fixed by planetmaker (2), ralph (1)
hungarian - 1 changed by alyr (1)
lithuanian - 1 fixed by Enternald (1)
luxembourgish - 140 fixed by Gubius (140)
norwegian_nynorsk - 9 fixed, 5 changed by Thor (14)
portuguese - 4 fixed by SnowFlake (4)
romanian - 2 fixed, 5 changed by kkmic (7)
slovak - 53 fixed by James (53)
slovenian - 20 fixed by Necrolyte (20)
2009-02-16 18:45:30 +00:00
smatz
ff706b1e63
(svn r15497) -Fix (r15027): when trains crashed, AIEvent was created only for one train
2009-02-16 17:16:58 +00:00
smatz
26cdcb2dd5
(svn r15496) -Codechange: one division less in the train acceleration code
2009-02-16 01:57:55 +00:00
yexo
6381cbeeae
(svn r15495) -Revert (r15383,r15422): Loading NewGRFs depends on correct settings, but the economy can only be started after loading NewGRFs. In short: r15383 causes more problems then it's worth.
2009-02-14 23:17:32 +00:00
yexo
a6350c0287
(svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in BuildRoadStation and BuildDriveThroughRoadStation.
2009-02-14 22:06:11 +00:00
yexo
b2d24d85d6
(svn r15493) -Fix (r15486): Forgot to update regression.
2009-02-14 21:57:25 +00:00
yexo
fa0cf4bbd1
(svn r15492) -Change [API CHANGE]: Split AIVehicle::MoveWagon in MoveWagon and MoveWagonChain (frosch).
2009-02-14 21:22:42 +00:00
yexo
c59caa45b7
(svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a front tile instead of a bool is_vertical (frosch).
2009-02-14 21:19:33 +00:00
yexo
d8de2d1413
(svn r15490) -Change [API CHANGE]: Remove AIBridge::GetYearAvailable. AIBridge::IsValidBridge now only returns true for available bridges.
2009-02-14 21:17:35 +00:00
yexo
e7eb6d05a0
(svn r15489) -Change [API CHANGE]: Remove AIAirport::AirportAvailable. AIAirport::IsValidAirportType now only returns true for available AirportTypes.
2009-02-14 21:16:21 +00:00
yexo
8583274f18
(svn r15488) -Change [API CHANGE]: Add support for distant-join stations.
2009-02-14 21:15:23 +00:00
yexo
a79524c805
(svn r15487) -Change [API CHANGE]: Remove the never implemented function AIEventVehicleCrashed::CloneCrashedVehicle.
2009-02-14 21:13:45 +00:00
yexo
320018aac1
(svn r15486) -Change [API CHANGE]: Remove AITown::GetMaxTownID.
2009-02-14 21:13:15 +00:00