Commit Graph

6157 Commits

Author SHA1 Message Date
yexo d982ec81df (svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them. 2009-05-26 23:14:02 +00:00
smatz 5a463c8347 (svn r16442) -Codechange: use new Vehicle accessors at more places 2009-05-26 22:45:48 +00:00
smatz 7ee882d03f (svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types 2009-05-26 22:10:13 +00:00
yexo aa546e513f (svn r16440) -Fix [NoAI]: AIRail::GetRailStationDirection returned incorrect information 2009-05-26 22:03:16 +00:00
yexo 0d56cfabfa (svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them. 2009-05-26 21:59:49 +00:00
smatz aa62ec0a1f (svn r16438) -Fix (r16436): set 'old_company' after modifying '_current_company' 2009-05-26 21:55:49 +00:00
rubidium bacbafe510 (svn r16437) -Codechange: remove the hack that for CMD_COMPANY_CTRL the company was changed from spectator to company 0 in the network code. 2009-05-26 21:25:24 +00:00
rubidium 5b92584c40 (svn r16436) -Codechange: always execute 'spectator'/'server' commands as spectator. This to reduce the difference between dedicated and non-dedicated servers and normal clients. 2009-05-26 21:24:11 +00:00
rubidium fd9bbdc54a (svn r16435) -Codechange: don't require the 'user company 0' hack for commands. 2009-05-26 19:23:02 +00:00
rubidium e3c5bc8d2e (svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED) 2009-05-26 15:46:24 +00:00
yexo 2a5a8f395c (svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting 2009-05-26 13:29:01 +00:00
smatz 55225433c4 (svn r16432) -Feature(tte): use 'scrollto x y' in console to scroll to tile with given coordinates 2009-05-26 13:16:58 +00:00
yexo 279746236b (svn r16431) -Fix (16429): Company settings can also be changed in multiplayer games 2009-05-26 12:53:34 +00:00
smatz af07333c78 (svn r16430) -Fix: crash when a company is deleted while a dropdown with company names is open 2009-05-26 11:57:52 +00:00
yexo a10e5f707a (svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies. 2009-05-26 11:40:14 +00:00
rubidium b19d0e0254 (svn r16428) -Codechange: use the less bloated SimpleTinyEnumT instead of TinyEnumT if the stuff provided by TinyEnumT but not SimpleTinyEnumT is not used. 2009-05-26 11:19:04 +00:00
rubidium 984bd3b98d (svn r16427) -Codechange: replace a few magic numbers with an existing constant and unduplicate a few lines. 2009-05-26 08:53:16 +00:00
rubidium 462c1ec4f3 (svn r16426) -Fix [FS#2921] (r16390): articulated parts got the wrong image assigned 2009-05-26 08:51:33 +00:00
yexo 7425bf779d (svn r16425) -Change [FS#2869]: Stop an AI when it takes too long to initialize or load 2009-05-25 21:55:47 +00:00
rubidium 168ae6f7e2 (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. 2009-05-24 21:09:00 +00:00
rubidium 0d99b6c71c (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 2009-05-24 20:29:04 +00:00
rubidium 36e71c8df6 (svn r16420) -Fix [FS#2919]: don't allow content download via the console when there's no zlib as it's done for the GUI already 2009-05-24 17:49:08 +00:00
frosch ad64d5eedb (svn r16418) -Fix: Resolve the company name for 'subsidy awarded'-news when the news are triggered, so it stays valid when the company bankrupts or is taken over. 2009-05-24 17:23:24 +00:00
translators 7f9c192a95 (svn r16417) -Update: WebTranslator2 update to 2009-05-24 17:18:38
icelandic  - 31 fixed, 14 changed by scrooge (45)
indonesian - 17 fixed by adjayanto (17)
serbian    - 84 fixed by etran (84)
2009-05-24 17:18:45 +00:00
frosch a4557c7da4 (svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted. 2009-05-24 16:52:42 +00:00
smatz b7d065ce99 (svn r16415) -Fix (r13008): some 64bit architectures require size_t to be aligned at 8-byte boundary, ensure it for MemBlock 2009-05-24 16:28:33 +00:00
frosch 8109a74c95 (svn r16414) -Change: Make it harder to ignore/close important error messages. Esp. do not close them automatically after some time. 2009-05-24 12:50:58 +00:00
alberth bc9c2e43fe (svn r16413) -Codechange: Allow leading/trailing whitespace and comma in newgrf parameters instead of treating them as invalid. 2009-05-24 12:49:27 +00:00
frosch 855edb0839 (svn r16412) -Cleanup: Shuffle vehicle pointers in AddArticulatedParts(), and remove two of them. 2009-05-24 12:05:27 +00:00
frosch 0337485284 (svn r16411) -Fix (r16390): Building articulated roadvehicles caused infinite loop due to v->Next() pointing to v itself. 2009-05-24 11:39:35 +00:00
rubidium 299f34b32b (svn r16410) -Fix (r16307): don't assume the extension starts with the first '.', but with the last '.'. This way depend doesn't fail if there's a dot in your path, e.g. 'gcc-4.4'. 2009-05-24 09:35:46 +00:00
rubidium de1a9b95c7 (svn r16409) -Change: don't add empty lines/duplicates of the previous command to the console's history 2009-05-23 22:40:14 +00:00
frosch 607583f091 (svn r16408) -Codechange: Silence a pointless newgrf debug message. 2009-05-23 22:24:09 +00:00
smatz 7854e68b95 (svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when source station is deleted 2009-05-23 19:43:09 +00:00
smatz 4bf70602a1 (svn r16406) -Codechange: constify parameters of CheckSubsidised() 2009-05-23 19:26:00 +00:00
alberth 6fc9b04861 (svn r16405) -Codechange: Move widget drawing code to functions to allow re-use. 2009-05-23 18:06:29 +00:00
rubidium 9f51f3a0f9 (svn r16404) -Fix [FS#2911] (r16378): the number of spritegroups got halved when the new pool was added, which mean there weren't enough spritegroups when you have more than about a dozen ECS vectors.
-Change: increase the spritegroup pool's maximum size to something more than the number of real sprites that OpenTTD can handle; for example ECS has about 30 spritegroups per real sprite. With the 'old' limit that would mean 'only' about 4000 real sprites worth of spritegroups could be loaded.
2009-05-23 16:39:55 +00:00
smatz b2aed51f8e (svn r16403) -Codechange: move code related to subsidies to separate file 2009-05-23 15:46:00 +00:00
rubidium f2317d0d9d (svn r16402) -Codechange: make Resolve a function of SpriteGroup 2009-05-23 15:25:52 +00:00
yexo 0b243d25cb (svn r16400) -Add [NoAI]: add AISignList that can be used to get a list of valid signs. This makes AISign::GetMaxSignID obsolete. 2009-05-23 14:54:55 +00:00
frosch 8e30f0e75a (svn r16399) -Fix (r4540): Don't treat pointer values as integer. 2009-05-23 13:42:02 +00:00
rubidium bbd14acb1d (svn r16398) -Feature: make NewGRF callbacks work again; honouring the 'features' of 0.3.2.1, which was released only 5 years ago. 2009-05-23 12:56:30 +00:00
rubidium 86710c5185 (svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle 2009-05-23 12:27:42 +00:00
rubidium f490394aa8 (svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union 2009-05-23 12:13:42 +00:00
smatz b270ca84ba (svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs 2009-05-23 11:13:43 +00:00
rubidium 6237fe1462 (svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier. 2009-05-23 09:10:56 +00:00
rubidium da5661a0c8 (svn r16393) -Codechange: move VehicleRail to Train. 2009-05-22 22:55:41 +00:00
rubidium c4b627af42 (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 2009-05-22 22:33:05 +00:00
rubidium 80e94b9bb1 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 2009-05-22 22:22:46 +00:00
rubidium 7a37220881 (svn r16390) -Codechange: move u.road to RoadVehicle. 2009-05-22 20:22:20 +00:00