Commit Graph

6356 Commits

Author SHA1 Message Date
smatz
e419fe6d3f (svn r16442) -Codechange: use new Vehicle accessors at more places 2009-05-26 22:45:48 +00:00
smatz
0c53f04c07 (svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types 2009-05-26 22:10:13 +00:00
yexo
c04e5a9aa3 (svn r16440) -Fix [NoAI]: AIRail::GetRailStationDirection returned incorrect information 2009-05-26 22:03:16 +00:00
yexo
f044ad6f80 (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
d8d7a38eb9 (svn r16438) -Fix (r16436): set 'old_company' after modifying '_current_company' 2009-05-26 21:55:49 +00:00
rubidium
78c726d2b1 (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
4677b60b73 (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
e234e88d2d (svn r16435) -Codechange: don't require the 'user company 0' hack for commands. 2009-05-26 19:23:02 +00:00
rubidium
d39f442bd0 (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
68042a6dde (svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting 2009-05-26 13:29:01 +00:00
smatz
795231995d (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
272722f12f (svn r16431) -Fix (16429): Company settings can also be changed in multiplayer games 2009-05-26 12:53:34 +00:00
smatz
72165d32c8 (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
7eb9ad0415 (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
87dfc2a881 (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
82cdacb20c (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
37b391901a (svn r16426) -Fix [FS#2921] (r16390): articulated parts got the wrong image assigned 2009-05-26 08:51:33 +00:00
yexo
de04ae2cda (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
2832d69272 (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
c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 2009-05-24 20:29:04 +00:00
rubidium
49235963aa (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
80e19b12c3 (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
6d74fb3553 (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
eeb3f75cfe (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
b86ab81030 (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
6e06e82bc4 (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
0db7c2929e (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
e60a1ec090 (svn r16412) -Cleanup: Shuffle vehicle pointers in AddArticulatedParts(), and remove two of them. 2009-05-24 12:05:27 +00:00
frosch
8ae1c5d908 (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
a661b157ad (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
65d2a381d9 (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
b9e911170a (svn r16408) -Codechange: Silence a pointless newgrf debug message. 2009-05-23 22:24:09 +00:00
smatz
bebab3cd79 (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
c1861060f7 (svn r16406) -Codechange: constify parameters of CheckSubsidised() 2009-05-23 19:26:00 +00:00
alberth
6bad10d216 (svn r16405) -Codechange: Move widget drawing code to functions to allow re-use. 2009-05-23 18:06:29 +00:00
rubidium
9f5d8d0f56 (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
1eb48cdded (svn r16403) -Codechange: move code related to subsidies to separate file 2009-05-23 15:46:00 +00:00
rubidium
846382a0f3 (svn r16402) -Codechange: make Resolve a function of SpriteGroup 2009-05-23 15:25:52 +00:00
yexo
2d8609080f (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
a368f8615d (svn r16399) -Fix (r4540): Don't treat pointer values as integer. 2009-05-23 13:42:02 +00:00
rubidium
fd016d5d09 (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
6cfc38b97c (svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle 2009-05-23 12:27:42 +00:00
rubidium
730b411878 (svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union 2009-05-23 12:13:42 +00:00
smatz
329407e9bc (svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs 2009-05-23 11:13:43 +00:00
rubidium
cd382b28a3 (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
4c0542c17f (svn r16393) -Codechange: move VehicleRail to Train. 2009-05-22 22:55:41 +00:00
rubidium
6350648a6c (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
1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 2009-05-22 22:22:46 +00:00
rubidium
489253b630 (svn r16390) -Codechange: move u.road to RoadVehicle. 2009-05-22 20:22:20 +00:00
rubidium
1ceb349779 (svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate 2009-05-22 20:18:45 +00:00
rubidium
4ae19b7451 (svn r16388) -Codechange: move u.air to Aircraft 2009-05-22 20:07:26 +00:00
rubidium
1e853b1226 (svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate 2009-05-22 20:03:26 +00:00
frosch
6478025c7d (svn r16386) -Codechange: Move ShowAdditionalText() to build_vehicle_gui and make it static. 2009-05-22 19:47:26 +00:00
rubidium
d40c61749f (svn r16385) -Codechange: move u.disaster to DisasterVehicle. 2009-05-22 18:57:11 +00:00
rubidium
521c265282 (svn r16384) -Codechange: move u.effect to EffectVehicle 2009-05-22 18:56:25 +00:00
frosch
36d36166ad (svn r16383) -Fix/Change: Disable multitile houses with non-zero population on additional tiles as they cause desyncs and because the specs do not allow that either. 2009-05-22 18:44:22 +00:00
rubidium
86fc432293 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 2009-05-22 18:17:20 +00:00
translators
5c62ee0529 (svn r16381) -Update: WebTranslator2 update to 2009-05-22 17:38:42
brazilian_portuguese - 2 fixed by tucalipe (2)
estonian   - 2 fixed by kristjans (2)
french     - 2 fixed by glx (2)
indonesian - 20 fixed by rindu (20)
romanian   - 4 fixed by CrystyB (2), kkmic (2)
serbian    - 229 fixed by etran (229)
spanish    - 2 fixed by eusebio (2)
2009-05-22 17:38:53 +00:00
smatz
3793b966c3 (svn r16380) -Codechange: rename pool.hpp to pool_type.hpp 2009-05-22 15:39:22 +00:00
smatz
d6e203ebe2 (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead 2009-05-22 15:23:47 +00:00
smatz
50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 2009-05-22 15:13:50 +00:00
smatz
7eb14aa49f (svn r16377) -Codechange: unify FOR_ALL_* macros, use separate index variable instead of var->index 2009-05-22 14:23:36 +00:00
smatz
70d3ed15c8 (svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted 2009-05-22 13:53:14 +00:00
smatz
10a36c64ca (svn r16375) -Codechange: don't be afraid of deleting NULL pointers 2009-05-22 13:13:55 +00:00
peter1138
75c2f19ed2 (svn r16374) -Fix (r11622): Valid UTF-8 sequences between 0x20 and 0xFF should be allowed as is instead of being treated as control codes. 2009-05-22 12:05:28 +00:00
smatz
85043a1fb7 (svn r16373) -Codechange: use () instead of (void) for functions without parameters 2009-05-21 22:43:25 +00:00
alberth
eded5a612c (svn r16372) -Codechange: Simplify size calculations with a few helper functions. 2009-05-21 18:12:28 +00:00
alberth
673a4802e8 (svn r16371) -Codechange (r16367): Properly align comments. 2009-05-21 17:45:12 +00:00
alberth
b1afd68e4c (svn r16370) -Doc: Improvements to the nested widgets documentation, added explanation about computations, fixed typo in param description. 2009-05-21 16:26:38 +00:00
alberth
b7fc3fba32 (svn r16369) -Codechange: Renaming ComputeMinimalSize() to SetupSmallestSize(), and AssignMinimalPosition() to AssignSizePosition(), they do not compute minimal size anymore. 2009-05-21 16:14:04 +00:00
alberth
3d32e2cc69 (svn r16368) -Codechange: Only leaf widgets use min_x and min_y. 2009-05-21 16:00:52 +00:00
alberth
fd98f18ac4 (svn r16367) -Codechange: Do not use min_x and min_y for storing smallest size to allow initialization more than once. 2009-05-21 15:48:27 +00:00
frosch
12a09a0dda (svn r16366) -Fix: Use a valid StringID as fall-back when undefined generic newgrf strings of vehicles are requested. 2009-05-21 13:05:48 +00:00
peter1138
5a3c73729d (svn r16363) -Fix: The previously selected newgrf station type was still remembered after switching to a different game without newstations enabled, preventing stations from being built. 2009-05-21 07:29:50 +00:00
translators
5cce2f8624 (svn r16362) -Update: WebTranslator2 update to 2009-05-20 17:30:16
catalan    - 2 fixed by arnaullv (2)
czech      - 2 fixed by Hadez (2)
dutch      - 2 fixed by habell (2)
finnish    - 2 fixed by jpx_ (2)
german     - 2 fixed by planetmaker (2)
hungarian  - 2 fixed by oklmernok (2)
italian    - 2 fixed by lorenzodv (2)
japanese   - 20 fixed by ickoonite (20)
turkish    - 2 fixed by Emin (2)
2009-05-20 17:30:30 +00:00
rubidium
1daa10520c (svn r16361) -Fix: pointer incremented with wrong count 2009-05-19 21:25:20 +00:00
rubidium
789999ecf3 (svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP. 2009-05-19 21:20:14 +00:00
smatz
53ae829b0b (svn r16359) -Codechange: don't abuse company 0 when determining 'cost to clear land' in the LandInfoWindow 2009-05-19 19:26:03 +00:00
glx
9f5472bf1d (svn r16358) -Fix (r16343): strdup doesn't like NULL 2009-05-19 17:04:42 +00:00
smatz
af57719513 (svn r16357) -Codechange: delete invalid depots in TTD savegames caused by improper SVXConverter conversions 2009-05-19 12:47:47 +00:00
smatz
67696c8a15 (svn r16356) -Codechange: use 'size_t' instead of 'uint' as parameter of functions in mem_func.hpp 2009-05-19 08:21:37 +00:00
smatz
6636ed7589 (svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too 2009-05-18 19:32:16 +00:00
smatz
fe498e21e7 (svn r16353) -Fix (r1): invalid read when OTTD savegame contains VEH_INVALID 2009-05-18 17:40:03 +00:00
smatz
512db5248e (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 2009-05-18 16:21:28 +00:00
smatz
1eca6aefeb (svn r16351) -Fix (r14773): signal handler could end in endless loop 2009-05-18 12:01:13 +00:00
smatz
74a667cb21 (svn r16350) -Codechange: make some 'rail track is present' checks more 'secure' 2009-05-18 01:35:15 +00:00
smatz
05db91dc65 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 2009-05-18 01:26:23 +00:00
smatz
bad5d6d6a2 (svn r16348) -Fix (r16280): buoys with invalid station ID could be left in the game 2009-05-18 00:33:24 +00:00
rubidium
c2e778224a (svn r16347) -Cleanup: remove some unused defines from oldpool.h. 2009-05-17 20:38:22 +00:00
rubidium
d46d1e706e (svn r16346) -Codechange: don't exploit the pool system in the way done for the saveload pool; it makes writing replacements unnecessarily difficult. And now we've got SmallVector that does more than enough for saving with less lines of 'interface' code. 2009-05-17 20:38:05 +00:00
rubidium
ad031c3f7d (svn r16345) -Codechange: replace the Sound(Entry) pool with a simple vector of SoundEntries. 2009-05-17 19:36:28 +00:00
rubidium
41c4c48add (svn r16344) -Codechange: s/FileEntry/SoundEntry/ 2009-05-17 19:27:50 +00:00
frosch
14c7cc16a6 (svn r16343) -Fix (r16066): Invalid free on exit after changing base graphics set in game. 2009-05-17 19:14:22 +00:00
frosch
3f9fa18671 (svn r16342) -Feature(tte): Display base graphics description in game options window. 2009-05-17 18:21:21 +00:00
rubidium
c85e41b3ed (svn r16341) -Codechange: just use a static array instead of a never freed malloc 2009-05-17 17:48:05 +00:00
rubidium
8df6765823 (svn r16340) -Codechange: introduce SoundID (uint16) and use that instead of SoundFX, which was used as a byte and uint16 at different places, when the uint16 sound ID is meant. 2009-05-17 17:17:48 +00:00
rubidium
cf368bcfbc (svn r16339) -Fix: [NewGRF] When overriding 'original sounds', only allow overriding of the 'original sounds' and not any other that is already loaded. 2009-05-17 17:00:30 +00:00
smatz
769de62daf (svn r16338) -Codechange: split loading of references to two phases
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers
2009-05-17 16:28:29 +00:00
rubidium
21e2842f34 (svn r16337) -Codechange: remove pointless variable + wrapper function; having it return anything else than ORIGINAL_SAMPLE_COUNT is asking for NewGRFs failing to load (due to invalid sample index), thus desyncs 2009-05-17 14:57:14 +00:00
rubidium
b27adec700 (svn r16336) -Codechange: make the SpriteGroup pool more like the 'normal' pools 2009-05-17 14:32:13 +00:00
smatz
1287f01872 (svn r16335) -Codechange: indenting fixes in saveload.cpp 2009-05-17 11:47:56 +00:00
smatz
59e1d05995 (svn r16334) -Codechange: use NeedLength enum 2009-05-17 11:43:51 +00:00
rubidium
1cc82de384 (svn r16333) -Cleanup: remove a bunch of unused wrapper functions. 2009-05-17 11:18:34 +00:00
rubidium
f1955333c9 (svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions) 2009-05-17 11:17:53 +00:00
smatz
45f9d334fb (svn r16331) -Codechange: replace _sl.save by an enum 2009-05-17 11:15:11 +00:00
rubidium
b96770ab84 (svn r16330) -Fix (r16329): we were shortly visited by Mr. Kenobi. 2009-05-17 10:59:40 +00:00
rubidium
c0204dc186 (svn r16329) -Fix: possible desync when removing lots of towns in-game (not that we allow removing towns now, but better not have desync prone code lingering around) 2009-05-17 10:35:13 +00:00
rubidium
57a7313ea5 (svn r16328) -Fix: desync when removing lots of stations 2009-05-17 10:19:00 +00:00
smatz
0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz
cf986c3099 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 2009-05-16 23:44:36 +00:00
smatz
d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
rubidium
f9b692c921 (svn r16323) -Fix [FS#2900]: desyncs due to the fact that depot searching with a maximum search depth simply does not work with YAPF's caches. 2009-05-16 20:10:58 +00:00
rubidium
3ab3cfcff3 (svn r16322) -Fix [FS#2873]: trains could get stuck in a depot when they wanted to go to the same depot again. 2009-05-16 20:08:49 +00:00
rubidium
f08ff3e707 (svn r16321) -Fix (r5946): in the scenario editor change the (starting) game year of the scenario, not the (starting) game year for new games/scenarios. 2009-05-16 18:58:15 +00:00
smatz
3d5ca93674 (svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash 2009-05-16 18:28:31 +00:00
translators
5db950085f (svn r16319) -Update: WebTranslator2 update to 2009-05-16 17:35:44
arabic_egypt - 1 fixed by khaloofah (1)
english_US - 24 fixed by WhiteRabbit (24)
esperanto  - 6 fixed by maristo (6)
german     - 1 changed by planetmaker (1)
welsh      - 9 fixed by welshdragon (9)
2009-05-16 17:35:53 +00:00
rubidium
5d2b6f8474 (svn r16318) -Change: use !! instead of @@ in src/*.in too.
-Change: use @ instead of ~ in configure/Makefiles so Debian's build system(s) can also build RC binaries.
2009-05-16 12:36:33 +00:00
alberth
b46d9079ce (svn r16317) -Codechange: Generalized finding a widget by type. 2009-05-16 11:25:19 +00:00
yexo
8461e505dc (svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings 2009-05-16 00:16:43 +00:00
yexo
d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 2009-05-15 23:55:06 +00:00
frosch
87ff51f15b (svn r16314) -Fix (r9315): Allow accessing the houseage when the house is not yet built. 2009-05-15 22:45:31 +00:00
rubidium
8e4ba4640f (svn r16312) -Codechange: unduplicate yapf (rail) cache debugging. 2009-05-15 17:32:07 +00:00
frosch
1205f02b43 (svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS. 2009-05-15 16:07:36 +00:00
smatz
7126bcd0e1 (svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo) 2009-05-14 23:40:03 +00:00
glx
3cf9fc17f6 (svn r16307) -Fix: makedepend can't handle the amount of files we have and it also miss some dependencies. That's why we introduce our custom implementation of makedepend. 2009-05-14 21:59:24 +00:00
yexo
d67810442d (svn r16306) -Fix [FS#2901] (r15027): Close all windows before unloading the AI system as closing the content-download window will rescan for AIs 2009-05-14 18:09:50 +00:00
rubidium
043c3c8b06 (svn r16305) -Codechange: force-enable extra sync checking when random debugging is enable and give the calling location of Chance16(R) instead of the Random call within those functions. 2009-05-14 12:08:24 +00:00
rubidium
3a15860df7 (svn r16304) -Codechange: remove some magic numbers from the newgrf add window so it mirrors nicely. 2009-05-13 22:51:31 +00:00
frosch
2431cc099e (svn r16303) -Codechange: Use the question mark as default sprite when creating vehicles, instead of arbitrary sprites not related to the vehicle. (though that also applies to the question mark) 2009-05-13 21:45:56 +00:00
smatz
c189a15e3e (svn r16302) -Codechange: remove Vehicle::AllocateList 2009-05-13 21:38:23 +00:00
smatz
3b6900baa8 (svn r16301) -Cleanup: remove unused parameter 2009-05-13 20:30:46 +00:00
smatz
53b8d13878 (svn r16300) -Codechange: reduce usage of Vehicle::AllocateList 2009-05-13 19:26:47 +00:00
smatz
09d16b4106 (svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command 2009-05-13 19:13:36 +00:00
rubidium
08655368eb (svn r16297) -Codechange: silence more ICC warnings 2009-05-13 17:39:00 +00:00
rubidium
8a8ec3001a (svn r16296) -Codechange: silence some ICC warnings 2009-05-13 16:52:51 +00:00
rubidium
f4b557c02e (svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC. 2009-05-13 16:51:17 +00:00
yexo
70559caa8b (svn r16292) -Fix (r16287): autorenew settings were set to 0 when creating a new company in multiplayer 2009-05-13 12:07:36 +00:00
rubidium
9777d0cfd6 (svn r16291) -Fix [FS#2893]: RVs were unable to find a depot when turning around (in some cases), causing 'nearest depot' orders to be occasionally lost. 2009-05-13 10:58:41 +00:00
rubidium
26cfdd3990 (svn r16290) -Fix [FS#2888]: unable to (re)set the desert state for watery tiles 2009-05-13 10:57:32 +00:00
smatz
fe8ce10b70 (svn r16289) -Fix (r16211): 'Display map' dropdown in scenario editor was broken 2009-05-13 10:38:46 +00:00
smatz
d87206b6f7 (svn r16288) -Fix (r16237): crash after clicking in the ClientList window 2009-05-13 00:24:21 +00:00
yexo
da1f2295c4 (svn r16287) -Fix: fix possible (in theory) desync related to autorenew settings 2009-05-12 22:32:22 +00:00
rubidium
b03621301a (svn r16286) -Change: make the scrolling ticker RTL/LTR aware (scroll in different directions) 2009-05-12 22:28:18 +00:00
rubidium
54ad884728 (svn r16284) -Codechange: replace some magic numbers with the left/right/top/bottom of a widget 2009-05-12 20:01:39 +00:00
rubidium
728094cd1b (svn r16283) -Fix [FS#2890]: news ticker truncated too early 2009-05-12 19:59:33 +00:00
translators
b7e3703573 (svn r16282) -Update: WebTranslator2 update to 2009-05-12 17:55:59
czech      - 10 fixed by Hadez (10)
german     - 13 changed by planetmaker (13)
spanish    - 11 fixed by eusebio (11)
2009-05-12 17:56:06 +00:00
smatz
9af94d5f4e (svn r16281) -Fix: silence some of compile farm warnings for target win9x 2009-05-11 18:48:05 +00:00
smatz
e65369bbc6 (svn r16280) -Fix (r13731): crash after using the 'Reset landscape' function
-Fix: remove all waypoint signs and buoys after resetting landscape
2009-05-11 18:17:21 +00:00
smatz
a43f7ad823 (svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating 2009-05-11 11:55:41 +00:00
rubidium
edf895806b (svn r16276) -Fix: huh, old AI? What is that? What about all the time I thought there was no AI? 2009-05-11 11:13:37 +00:00
frosch
ad538a784b (svn r16274) -Fix: Disable multitile houses for which the newgrf does not define proper additional tiles. (instead of crashing later) 2009-05-10 22:16:51 +00:00
smatz
ce7dff4acc (svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
2009-05-10 17:27:25 +00:00
frosch
af12760722 (svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station. 2009-05-10 15:42:59 +00:00
frosch
41aec3d3c7 (svn r16267) -Documentation: [NoAI] Explain how to deal with IDs of various objects. 2009-05-10 15:23:55 +00:00
frosch
074569ca80 (svn r16266) -Documentation: [NoAI] Add details to AITile::(Raise|Lower)Tile wrt. modifiing multiple corners at once. 2009-05-10 15:23:08 +00:00
smatz
e5529d8995 (svn r16265) -Fix (r16238): wrong format string for debug output 2009-05-10 13:23:23 +00:00
frosch
cb66ca57c1 (svn r16264) -Change/Fix (r16262): [NoAI] Change SLOPE_INVALID to 0xFFFF so that SLOPE_INVALID != (SLOPE_ELEVATED | SLOPE_STEEP | SLOPE_HALFTILE_MASK). 2009-05-10 12:26:55 +00:00
frosch
a6f181f74b (svn r16263) -Change: Interpret setting bridge property 08 to 0 as always available. 2009-05-09 19:48:14 +00:00
yexo
2060b0b29a (svn r16262) -Fix [NoAI]: Check slopes passed to the API better for validity 2009-05-09 19:45:02 +00:00
frosch
d1aa2286ec (svn r16261) -Fix (r16260): Replace a space with a newline and a tab. (thanks smatz) 2009-05-09 14:23:19 +00:00
frosch
8bb92c110d (svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate some code. 2009-05-09 13:37:18 +00:00
alberth
20dab97717 (svn r16259) -Codechange: Added nested widgets to the load and save dialogue windows. 2009-05-09 13:03:45 +00:00
alberth
904e5dc1d3 (svn r16258) -Codechange: Remove panel with negative height and some small adjustments in the load/save dialogue windows. 2009-05-09 12:56:55 +00:00
alberth
92f7cc590d (svn r16257) -Codechange: Added empty widgets in load dialogue to move the resize box to the right place in the array. 2009-05-09 12:49:28 +00:00
alberth
ba0cf5ae1b (svn r16256) -Codechange: Moved load/save dialogue widget numbers outside the window struct. 2009-05-09 12:44:12 +00:00
alberth
9e99cbf93d (svn r16255) -Fix [FS#2887] (r16237): Nested widgets of client list window used incorrect length. 2009-05-09 08:02:17 +00:00
frosch
d84faa8209 (svn r16254) -Fix [FS#2886]: Magic constant removed. 2009-05-08 09:00:47 +00:00
yexo
6ced713033 (svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD 2009-05-07 21:33:38 +00:00
yexo
0ad4f31658 (svn r16252) -Add [NoAI]: AIAirport::GetPrice, returning the building cost of an airport 2009-05-07 21:30:18 +00:00
translators
04c74c1095 (svn r16251) -Update: WebTranslator2 update to 2009-05-07 17:36:23
danish     - 26 fixed, 1 changed by ThomasA (27)
romanian   - 1 fixed by kkmic (1)
welsh      - 10 fixed by welshdragon (10)
2009-05-07 17:36:28 +00:00
rubidium
31b9cd6d03 (svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company 2009-05-07 17:08:41 +00:00
yexo
f51d764fbd (svn r16249) -Fix [NoAI]: Enable parameter checking for AIController::* functions again 2009-05-07 12:13:58 +00:00
yexo
cac5b8bf79 (svn r16244) -Fix [NoAI]: Make sure AITunnel::BuildTunnel returns what the documentation says it does 2009-05-06 21:40:51 +00:00
yexo
eb162ef55d (svn r16243) -Fix [FS#2875]: CmdBuildTunnel could be called with invalid parameters from the api code, causing crashes later 2009-05-06 21:38:59 +00:00
rubidium
241af768f0 (svn r16242) -Codechange: rework pausing
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
2009-05-06 15:06:57 +00:00
rubidium
7ffb421add (svn r16241) -Fix (r16181): regression failing due to wrongly initialised amount of traps 2009-05-06 13:42:31 +00:00
frosch
f1347ded2b (svn r16240) -Fix: Make 'stop in depot'-orders only apply on the target depot, not those which are entered on the way to them. 2009-05-06 13:15:07 +00:00
yexo
d0c22e5f46 (svn r16239) -Fix (r16199): Use the stop/non-stop intermediate orderflags AIs can give for goto-depot orders 2009-05-06 12:48:13 +00:00
rubidium
dd0b93532a (svn r16238) -Change: improve/clarify some network related debug "error" messages by adding more information to them. Also give some clues on how to fix certain issues (like failing advertising). 2009-05-06 09:52:52 +00:00
alberth
4c703618ff (svn r16237) -Codechange: Add nested widgets to remaining network windows. 2009-05-05 20:40:08 +00:00
alberth
c6be093c89 (svn r16236) -Codechange: Make widget enums complete of various network windows, and add them as comment. 2009-05-05 20:36:16 +00:00
alberth
2b78839ac9 (svn r16235) -Codechange (r16234): But keep the window description. 2009-05-05 20:33:05 +00:00
alberth
40a2e0d2a3 (svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk. 2009-05-05 20:17:39 +00:00
alberth
a67052199f (svn r16233) -Codechange: Added nested widgets to network content windows. 2009-05-05 20:08:50 +00:00
alberth
eab14e1e1c (svn r16232) -Codechange: Moving network content widgets enums outside window structs. 2009-05-05 20:07:33 +00:00
alberth
b6f4126cf2 (svn r16231) -Codechange: Added nested widgets to chat window. 2009-05-05 20:03:57 +00:00
alberth
709acb38ed (svn r16230) -Codechange: Moving chat widgets enum outside window struct. 2009-05-05 20:03:12 +00:00
translators
38367b7639 (svn r16229) -Update: WebTranslator2 update to 2009-05-05 12:43:50
korean     - 1 changed by dlunch (1)
luxembourgish - 53 fixed by Gubius (53)
simplified_chinese - 3 fixed, 3 changed by ww9980 (6)
2009-05-05 12:43:55 +00:00
frosch
c95bbdc6c1 (svn r16228) -Fix/Change (r16187): If we are heading for a different depot, do also not do the refitting-part of the depot-order.
-Fix (r16198): && != &, GetDepotOrderType != GetDepotActionType and - uhm - ODATFB_NEAREST_DEPOT is not set for current_order either.
2009-05-04 19:27:22 +00:00
alberth
a3abbfc204 (svn r16227) -Codechange: Added nested widgets for error windows, tooltip window, and dropdown window. 2009-05-04 18:42:49 +00:00
alberth
adfc9c968c (svn r16226) -Codechange: Separating generation of a widget array from WindowDesc to the InitializeWidgetArrayFromNestedWidgets function. 2009-05-04 18:40:37 +00:00
alberth
3f58521baa (svn r16225) -Codechange: Added nested widgets to all rail_gui windows (except the build depot window). 2009-05-04 12:22:01 +00:00
alberth
72b00e606f (svn r16224) -Codechange: Move BuildRailStationWidgets and BuildRailWaypointWidgets enums out of their Window structs, extend horizontal scrollbar by 1 pixel. 2009-05-04 12:09:30 +00:00
frosch
80e896fa53 (svn r16223) -Fix (r8881): ActionB should use the online parameters from GRFFile instead of the initial user-specified values from GRFConfig. Also use the values as they were set when the ActionB was executed, not as they are set when the message is shown. 2009-05-04 11:23:21 +00:00
rubidium
99a215c8ec (svn r16222) -Fix: unneeded pointer dereferencing 2009-05-03 21:56:46 +00:00
rubidium
3490147666 (svn r16221) -Change: support building 64 bits OSX binaries and add optional support for 64 bits binaries in OSX universal binaries. However, do not default to adding 64 bits binaries because benchmarking has shown that they are slower than the 32 bits binaries. 2009-05-03 15:46:36 +00:00
rubidium
3662d3d09b (svn r16220) -Fix [FS#2862]: possible crashes when quiting OpenTTD or forcing resizes/redraws of the screen during map generation 2009-05-03 15:44:05 +00:00
alberth
5e5dd3cac7 (svn r16219) -Codechange: Added nested widgets to rv station picker window. 2009-05-03 13:55:22 +00:00
alberth
2b71642923 (svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct. 2009-05-03 13:54:47 +00:00
alberth
2ca30555da (svn r16217) -Codechange: Make rv station picker widgets non-overlapping, fix doc typo. 2009-05-03 13:53:34 +00:00
alberth
755ce4127d (svn r16216) -Codechange: Added nested widgets to vehicle view window. 2009-05-03 13:13:41 +00:00
alberth
bd3bedea54 (svn r16215) -Codechange: Added tooltip to resizebox of vehicle view window. 2009-05-03 13:12:13 +00:00
rubidium
57841b93a4 (svn r16214) -Fix [FS#2878]: shared orders without orders weren't properly converted causing corrupt/invalid orders when loading pre 0.7 savegames. 2009-05-03 11:57:01 +00:00
alberth
1d9892bdbf (svn r16213) -Codechange: Added nested widgets to timetable window. 2009-05-03 11:53:06 +00:00
alberth
5801377b31 (svn r16212) -Codechange: Added nested widgets for all station_gui windows. 2009-05-03 10:46:24 +00:00
alberth
0949488c60 (svn r16211) -Codechange: Moving StationListWidgets out of the window class, completing StationViewWidgets. 2009-05-03 10:38:35 +00:00
alberth
745e920547 (svn r16210) -Codechange: Make panels non-overlapping in company stations window. 2009-05-03 10:34:47 +00:00
alberth
31822a4a0b (svn r16209) -Codechange: Removed bottom panel from join station window. 2009-05-03 10:33:15 +00:00
alberth
1de26120e9 (svn r16208) -Codechange: Added nested widgets for the buy company and show company windows. 2009-05-03 08:27:12 +00:00
alberth
3e83aec89c (svn r16207) -Codechange: Added and applied BuyCompanyWidgets enum.
-Doc: Small fixes and additions to documentation.
2009-05-03 08:13:14 +00:00
translators
069e790f94 (svn r16206) -Update: WebTranslator2 update to 2009-05-02 17:39:59
german     - 10 changed by planetmaker (10)
korean     - 30 fixed, 2 changed by leejaeuk5 (32)
2009-05-02 17:40:02 +00:00
alberth
d477532aed (svn r16205) -Codechange: Added nested widgets for news windows and news-settings window. 2009-05-02 17:00:56 +00:00
alberth
8214a1746c (svn r16204) -Codechange: Completing widget numbers of news settings window. 2009-05-02 16:52:21 +00:00
alberth
785c4dad07 (svn r16203) -Codechange: Simplify widget layout of news settings window. 2009-05-02 16:45:01 +00:00
alberth
41003af530 (svn r16202) -Codechange: Use widget top coordinate instead of hardcoded value. 2009-05-02 16:40:26 +00:00
alberth
8436327ded (svn r16201) -Codechange: Add NWidgetBase::SetPadding method. 2009-05-02 16:33:28 +00:00
alberth
5175aa9e9b (svn r16200) -Codechange: Moving news-type description to NewsTypeData array. 2009-05-02 13:05:00 +00:00
frosch
ac1b753f9a (svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part.
-Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
2009-05-02 00:10:24 +00:00
frosch
cf0bc6e649 (svn r16198) -Fix/Change (r16187): 'Go to nearest depot'-orders are fulfilled when reaching any depot, even though the train decided for a different depot on the last junction/order-skip. 2009-05-01 23:16:52 +00:00
alberth
9417d8cd18 (svn r16197) -Codechange: Structure buttons of train order window based on related functions rather than position. 2009-05-01 19:37:59 +00:00
alberth
71c281ee25 (svn r16196) -Codechange: Added nested widgets for non-train and other-companies order windows. 2009-05-01 19:33:58 +00:00
alberth
5d91dfde16 (svn r16195) -Codechange: Even empty widgets should live within window boundaries. 2009-05-01 19:30:38 +00:00
translators
88b1875ae1 (svn r16194) -Update: WebTranslator2 update to 2009-05-01 17:45:47
finnish    - 10 fixed by jpx_ (10)
romanian   - 22 fixed by kkmic (22)
turkish    - 11 fixed by Emin (11)
2009-05-01 17:45:52 +00:00
alberth
0393a0dea9 (svn r16193) -Codechange: Added nested widgets for smallmap and extra viewport windows. 2009-05-01 08:50:07 +00:00
alberth
6bbfae998a (svn r16192) -Codechange: Moving smallmap and extra viewport widget enums out of the window structs, completing smallmap enum. 2009-05-01 08:48:07 +00:00
alberth
4a06d41951 (svn r16191) -Codechange: Added nested widgets of one order window. 2009-04-30 19:22:44 +00:00
alberth
a9557c633a (svn r16190) -Codechange: Allow stacking of nested widgets. 2009-04-30 19:21:51 +00:00
alberth
db91f735a8 (svn r16189) -Doc: Additions and improvement of (mainly) nested widgets/widget-parts doxygen docs. 2009-04-30 17:35:38 +00:00
rubidium
7ad85bdbb0 (svn r16188) -Fix [FS#2874] (r16124): printing the first 4 bytes worth of a 8 byte integer causes some unwanted side effects when the system is not little-endian. 2009-04-30 12:11:51 +00:00
rubidium
b5f7583472 (svn r16187) -Fix [FS#2871]: do mark the "go to depot X" order fulfilled when reaching any depot, but only when reaching depot X. 2009-04-29 21:12:30 +00:00
alberth
663d6b60fb (svn r16186) -Codechange: Adding nested widgets to _newgrf_desc and _newgrf_add_dlg_desc window descriptions. 2009-04-29 20:32:11 +00:00
alberth
1a3a52abf9 (svn r16185) -Codechange: Moving the ShowNewGRFStateWidgets and AddNewGRFWindowWidgets widget enums outside their window structs.
-Codechange: Improvements to the _newgrf_add_dlg_widgets and _newgrf_widgets widget arrays in preparation for nested widgets.
2009-04-29 20:29:19 +00:00
translators
4da06d0b54 (svn r16184) -Update: WebTranslator2 update to 2009-04-29 17:32:47
estonian   - 6 changed by kristjans (6)
french     - 10 fixed by glx (10)
polish     - 17 fixed by xaxa (17)
simplified_chinese - 25 fixed, 6 changed by ww9980 (31)
2009-04-29 17:32:53 +00:00
rubidium
f5335b6aaa (svn r16183) -Fix [FS#2872]: wrong string alignment for error messages with face 2009-04-29 10:11:46 +00:00
rubidium
4a0301cf29 (svn r16182) -Fix: hardcoded (old sized) MAX_COMPANIES constant 2009-04-29 10:00:58 +00:00
yexo
931e719ec7 (svn r16181) -Fix [Squirrel]: the traps variable wasn't restored, causing try/catch blocks to be 'forgotten' during a suspend. 2009-04-28 13:16:14 +00:00
translators
c2285a3af1 (svn r16180) -Update: WebTranslator2 update to 2009-04-27 17:43:43
brazilian_portuguese - 24 changed by tucalipe (24)
dutch      - 10 changed by habell (10)
estonian   - 8 changed by kristjans (8)
hungarian  - 10 changed by IPG (10)
italian    - 1 changed by lorenzodv (1)
malay      - 22 fixed by Syed (22)
norwegian_bokmal - 1 changed by khh (1)
polish     - 440 changed by konrad (440)
2009-04-27 17:43:51 +00:00
translators
6320c56a49 (svn r16179) -Update: WebTranslator2 update to 2009-04-27 17:41:22
brazilian_portuguese - 24 fixed by tucalipe (24)
dutch      - 10 fixed by habell (10)
estonian   - 8 changed by kristjans (8)
hungarian  - 10 fixed by IPG (10)
italian    - 1 changed by lorenzodv (1)
malay      - 22 fixed by Syed (22)
norwegian_bokmal - 1 fixed by khh (1)
polish     - 336 fixed, 104 changed by konrad (440)
2009-04-27 17:41:31 +00:00
smatz
cc6955ce47 (svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station 2009-04-27 15:10:15 +00:00
bjarni
b51215fe37 (svn r16177) -Fix (r15892): [OSX] fixed linking error regarding _select$1050 (only present on some systems) 2009-04-27 00:39:15 +00:00
yexo
965b8196fb (svn r16176) -Fix: forbid joining AI companies via the 'move' and 'join' console commands. 2009-04-26 20:01:14 +00:00
yexo
f6070e2261 (svn r16175) -Fix: Disable the join button in the multiplayer lobby for AI companies, since joining an AI company is not possible. 2009-04-26 19:48:42 +00:00
yexo
d1ab79a902 (svn r16174) -Fix (r16093) [FS#2863]: crash when starting a game/loading a game with no AIs available. 2009-04-26 19:30:31 +00:00
translators
932a2d7692 (svn r16173) -Update: WebTranslator2 update to 2009-04-26 17:38:31
arabic_egypt - 35 fixed by khaloofah (35)
catalan    - 10 fixed by arnaullv (10)
estonian   - 10 fixed, 26 changed by kristjans (36)
german     - 10 fixed by planetmaker (10)
italian    - 10 fixed by lorenzodv (10)
2009-04-26 17:38:38 +00:00
yexo
59a9d1eade (svn r16172) -Fix (r16171): typo (thanks SmatZ) 2009-04-26 17:16:30 +00:00
yexo
406e231634 (svn r16171) -Add [NoAI]: two new error codes to AITile: ERR_AREA_ALREADY_FLAT and ERR_ESCAVATION_WOULD_DAMAGE. 2009-04-26 17:01:05 +00:00
alberth
03659f5cb9 (svn r16170) -Codechange: Added nested widgets to OSK. 2009-04-26 16:51:50 +00:00
alberth
012df60680 (svn r16169) -Codechange: Completing OSK widget numbers. 2009-04-26 16:48:02 +00:00
alberth
2caa9daefa (svn r16168) -Codechange: Removing unused WWT_EMPTY widget. 2009-04-26 16:41:08 +00:00
alberth
c33e9c1806 (svn r16167) -Codechange: Added empty-ness test to nested widget containers. 2009-04-26 16:30:12 +00:00