smatz
5a6bb53894
(svn r16553) -Codechange: don't use TRACK_BIT_WORMHOLE and TRACK_BIT_DEPOT as bitmasks
16 years ago
smatz
5e1c59c3de
(svn r16552) -Codechange: make AddTileIndexDiffCWrap() a bit faster
16 years ago
smatz
d6996c110a
(svn r16551) -Codechange: use shift instead of multiplication in TileXY()
16 years ago
smatz
ec78a39f9e
(svn r16550) -Codechange: move definition of ScaleByMapSize to header file, use shifts instead of mults
16 years ago
smatz
4e2c1ef08f
(svn r16549) -Codechange: use bool in TileLoopClearHelper
16 years ago
smatz
498d2b0caa
(svn r16548) -Fix (r16538): removing of duplicates of base graphics set could behave randomly
16 years ago
smatz
0c0943fe83
(svn r16547) -Codechange: make CircularTileSearch a tiny bit faster
16 years ago
smatz
fd191dd616
(svn r16546) -Codechange: use array member instead of allocating in costructor and freeing in desctructor
16 years ago
smatz
1c5ca9822d
(svn r16545) -Cleanup: tunnels have been returning correct SlopeZ since r1
16 years ago
smatz
249b6e6798
(svn r16544) -Codechange: use double-linked list for vehicle position caches in order to improve performance (~5% with many vehicles)
16 years ago
translators
ea1a523a89
(svn r16543) -Update: WebTranslator2 update to 2009-06-09 17:05:46
...
russian - 6 deleted, 276 changed by Lone Wolf (282)
16 years ago
smatz
e16314d58f
(svn r16542) -Fix [FS#2971](r16307): depend failed on architectures with unsigned char
16 years ago
rubidium
afdeab52ab
(svn r16538) -Fix (r16503): when finding duplicate graphics sets favour the more complete one
16 years ago
translators
050bbb4dac
(svn r16537) -Update: WebTranslator2 update to 2009-06-08 17:40:35
...
french - 1 fixed by glx (1)
german - 1 changed by planetmaker (1)
russian - 31 fixed, 89 changed by Lone Wolf (120)
16 years ago
frosch
8cbf116c62
(svn r16536) -Fix (r16535): W != S
16 years ago
frosch
53a711ede0
(svn r16535) -Fix (r16146): In one case a too small portion of the screen was marked dirty, when (un-)drawing selections.
16 years ago
yexo
1df029de1d
(svn r16534) -Fix [Squirrel] [FS#2942]: fix crash that occured when an AI was halted while one or more generators were still in a 'running' state
16 years ago
translators
95f7c05199
(svn r16533) -Update: WebTranslator2 update to 2009-06-07 17:45:47
...
icelandic - 8 fixed, 50 changed by scrooge (58)
russian - 8 fixed, 28 changed by Lone Wolf (36)
serbian - 100 fixed by etran (100)
16 years ago
yexo
9db1f5925c
(svn r16532) -Fix [Squirrel]: Don't copy an object when we just checked that the pointer to it is NULL
16 years ago
alberth
e3ba9c487f
(svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo).
16 years ago
yexo
726ba50868
(svn r16529) -Fix [NoAI]: StationIDs from oilrigs were not considered valid by the API.
16 years ago
frosch
8745a30971
(svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead.
16 years ago
smatz
0c10006907
(svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check
16 years ago
smatz
c90819ff6d
(svn r16526) -Fix: don't cast Vehicle to RoadVehicle when it's not a RoadVehicle
16 years ago
frosch
5b497d6b49
(svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost.
16 years ago
rubidium
ec3ef70adb
(svn r16524) -Fix [FS#2963]: missing guards in the NoAI API making it possible to hit an assert in OpenTTD.
16 years ago
frosch
0b8ceb3007
(svn r16523) -Fix (rNewPool): Segfault when small ufos were heading for deleted vehicles.
16 years ago
yexo
59ae226ab1
(svn r16522) -Fix [FS#2962]: possible assert in ai debug window when an AI was stopped an a human company took it's CompanyID
16 years ago
frosch
4554c79b54
(svn r16521) -Fix [FS#2946] (r13945): Do not access 'compatible_railtypes' for road vehicles. (causing invalid reads since r16391/16392)
16 years ago
yexo
ad5f018195
(svn r16520) -Fix [NoAI]: Make sure AIBridge::BuildBridge returns what the documentation says it does (r16244 for AIBridge)
16 years ago
alberth
ec5db12adc
(svn r16519) -Add: Prevent hiding of a window titlebar behind the status bar.
16 years ago
translators
69d86f0b11
(svn r16518) -Update: WebTranslator2 update to 2009-06-04 16:25:41
...
swedish - 39 fixed by daishan (39)
16 years ago
alberth
19ccf6912c
(svn r16517) -Codechange: Switched intro-screen and town directory window to nested widget trees.
16 years ago
alberth
b144a5451c
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
16 years ago
alberth
1a4934ef07
(svn r16515) -Codechange: Added scrollbar handling for nested widgets, and finding widgets by type or position in the tree.
16 years ago
alberth
5c9071fcff
(svn r16514) -Codechange: Add widget flags, and drawing and invalidating.
16 years ago
alberth
1ba3755aa7
(svn r16513) -Codechange: Add nested widgets root and array to Window, and NWidgetBase::FillNestedArray() to fill the array.
16 years ago
rubidium
caf98238e3
(svn r16510) -Doc: silence some (AI) doxygen warnings by adding comments about the appropriate things.
16 years ago
yexo
13c69b897e
(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
16 years ago
smatz
d1a50f5258
(svn r16507) -Fix (r16503): segfault when deleting non-last graphics set
16 years ago
smatz
2b4d37de3d
(svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit
16 years ago
rubidium
2fc0cb3e76
(svn r16505) -Fix [FS#2951] (r16472): since g++ 4.4 the implicit (default) constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble.
16 years ago
smatz
78a25e84e9
(svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the scenario editor
16 years ago
rubidium
be04b7e29c
(svn r16503) -Fix: base graphics names must be unique, so don't add duplicates (even if the versions differ).
16 years ago
yexo
4ea3e511bd
(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
...
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
16 years ago
alberth
9b15b8cd4a
(svn r16501) -Codechange: Introduced different phases in resizing a nested widget tree.
16 years ago
translators
c077796ac6
(svn r16499) -Update: WebTranslator2 update to 2009-06-01 17:32:36
...
luxembourgish - 3 fixed, 11 changed by *jigo* (14)
serbian - 105 fixed by etran (105)
16 years ago
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
smatz
da57fe63f3
(svn r16497) -Feature [FS#2870]: Q/W/E/D will now open the landscape toolbar and select appropriate tool
16 years ago
smatz
1a506f5912
(svn r16496) -Codechange: remove one useless dynamic_cast<>
16 years ago
alberth
333795bc70
(svn r16495) -Codechange: Renamed a few variables.
16 years ago
smatz
de25de7a60
(svn r16494) -Codechange: cache train's speed limit caused by curves
16 years ago
rubidium
765c65b738
(svn r16493) -Fix: missing/wrong @file doxygen 'headers'
16 years ago
smatz
c03ce4b1c7
(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed.
16 years ago
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
frosch
5e91bf0ad2
(svn r16490) -Fix: Do not draw train details over the scrollbar.
16 years ago
alberth
ba9e014bdc
(svn r16489) -Fix [FS#2937] (r16258): Do not resize a widget twice (erikjanp)
16 years ago
alberth
743f12fad0
(svn r16488) -Codechange [FS#2941]: Use widget numbers of base grap window and cargo payment window in the window handling code (erikjanp)
16 years ago
alberth
292647b212
(svn r16487) -Codechange [FS#2940]: Add widget numbers to news display and news history windows (based on work by erikjanp)
16 years ago
alberth
9237d01931
(svn r16486) -Codechange [FS#2939]: Added widget numbers to the airport toolbar (based on work by erikjanp)
16 years ago
alberth
304b42d00e
(svn r16485) -Fix [FS#2938]: Move date in news window a pixel away from the right-edge (erikjanp)
16 years ago
alberth
6c126cc5c8
(svn r16484) -Cleanup: Renamed widget variable to widget_index and introduced widget_type variable.
...
-Fix: Prevented out-of-bounds array access when not clicking at a widget.
16 years ago
frosch
ea229c32bc
(svn r16483) -Codechange: Enumerate tabs in train details window.
16 years ago
frosch
9853c0dc22
(svn r16480) -Fix (r15617): Invalidate newgrf variable caches of more vehicles in more places. Esp. they were only invalidated for trains.
16 years ago
frosch
56988b198d
(svn r16479) -Fix (r5146): Call callbacks after initialisation of vehicle variables.
16 years ago
frosch
c64fdcbef2
(svn r16478) -Fix (r15378): Determining most common (sub-)cargo-type was broken due to someone confusing similiary named variables.
16 years ago
rubidium
75a818a325
(svn r16477) -Fix [FS#2936] (r12650): loading indicator when 'unload' in and 'no loading' is off was pointing to the wrong direction.
16 years ago
smatz
79d5a41b85
(svn r16476) -Fix (r16475): wrong version of the patch
16 years ago
smatz
ab5a51d462
(svn r16475) -Codechange: move code invalidating Vehicle::last_station_visited to more logical place
16 years ago
rubidium
0eaec8edca
(svn r16474) -Fix [FS#2933]: could set company related settings via query window
16 years ago
smatz
34f6b8614e
(svn r16473) -Fix [FS#2934](r16442): show all non-effect vehicles in the minimap, not only effect vehicles
16 years ago
smatz
8c11d612e4
(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type
16 years ago
smatz
d2d66d9e2d
(svn r16470) -Fix (r14293): track reservation was drawn at bridge heads in the menu
16 years ago
translators
d741ccb6b2
(svn r16469) -Update: WebTranslator2 update to 2009-05-30 17:31:31
...
afrikaans - 6 fixed by Chilli (6)
luxembourgish - 290 fixed, 793 changed by *jigo* (1083)
16 years ago
alberth
e03376c239
(svn r16468) -Codechange: Use GetWidgetOfType() for finding an edit box.
16 years ago
alberth
101a6b3320
(svn r16467) -Codechange: Unduplicate setting of widget focus (with thanks to Smatz).
16 years ago
alberth
bfaf610fff
(svn r16466) -Codechange: Improved wording in comments.
16 years ago
alberth
bfb8df3fb9
(svn r16465) -Codechange: Eliminated GetGloballyFocusedWidget(), it was used only once.
16 years ago
alberth
2a2a9a27ba
(svn r16464) -Codechange (r16422): Added a missing const_cast<>
16 years ago
alberth
5eecf3e5cb
(svn r16463) -Cleanup: Code style fixes.
16 years ago
translators
b1297fcb36
(svn r16460) -Update: WebTranslator2 update to 2009-05-29 17:38:27
...
afrikaans - 18 fixed, 6 changed by Chilli (24)
luxembourgish - 114 fixed, 252 changed by *jigo* (366)
16 years ago
smatz
b178a94c19
(svn r16459) -Codechange: move definition of several cargopacket accessors to header file
16 years ago
smatz
1ad410dc00
(svn r16458) -Codechange: use one enum instead of four
16 years ago
rubidium
62a2dff61e
(svn r16457) -Fix [FS#2925]: skipping a 'nearest depot order' because none could be found could cause multiple orders to get skipped
16 years ago
yexo
91fe6f5e13
(svn r16455) -Fix: don't crash when a newgrf has sounds in an unsupported sound format
16 years ago
yexo
9bd64cf588
(svn r16454) -Fix (r16181, r16241): fix the try/catch bug fixed in r16181 and reintroduced in r16241 again, this time without breaking the regression test.
16 years ago
yexo
df7786f789
(svn r16453) -Fix: Move some code around so a company is no longer used after deleting it
16 years ago
smatz
45af2a294c
(svn r16452) -Fix: don't trigger station animations when the station was deleted in the same tick
16 years ago
smatz
5cd998b7a4
(svn r16451) -Fix (r16449): crash when a spectator (or dedicated server) received news about new engine
16 years ago
translators
4c9b4f5265
(svn r16450) -Update: WebTranslator2 update to 2009-05-27 17:39:46
...
arabic_egypt - 2 fixed by khaloofah (2)
danish - 2 fixed by ThomasA (2)
english_US - 2 fixed by WhiteRabbit (2)
indonesian - 2 fixed, 8 changed by anansboga (10)
romanian - 1 changed by CrystyB (1)
serbian - 100 fixed by etran (100)
16 years ago
rubidium
6e94e6f017
(svn r16449) -Fix [FS#2924]: vehicle recolouring wasn't done for engine preview/news
16 years ago
rubidium
5df12c37a9
(svn r16448) -Fix [FS#2909]: road vehicles ending up on the pavement when they are in a drive through station that got removed due to bankruptcy
16 years ago
yexo
b16c9ae6ef
(svn r16447) -Fix [FS#2922] (r16444): compiling on x86-64 failed
16 years ago
glx
5991c5195c
(svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning
16 years ago
smatz
faae8f0177
(svn r16445) -Codechange: update old comments (Yexo)
16 years ago
yexo
d982ec81df
(svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them.
16 years ago
smatz
5a463c8347
(svn r16442) -Codechange: use new Vehicle accessors at more places
16 years ago
smatz
7ee882d03f
(svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types
16 years ago
yexo
aa546e513f
(svn r16440) -Fix [NoAI]: AIRail::GetRailStationDirection returned incorrect information
16 years ago
yexo
0d56cfabfa
(svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them.
16 years ago
smatz
aa62ec0a1f
(svn r16438) -Fix (r16436): set 'old_company' after modifying '_current_company'
16 years ago
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.
16 years ago
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.
16 years ago
rubidium
fd9bbdc54a
(svn r16435) -Codechange: don't require the 'user company 0' hack for commands.
16 years ago
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)
16 years ago
yexo
2a5a8f395c
(svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting
16 years ago
smatz
55225433c4
(svn r16432) -Feature(tte): use 'scrollto x y' in console to scroll to tile with given coordinates
16 years ago
yexo
279746236b
(svn r16431) -Fix (16429): Company settings can also be changed in multiplayer games
16 years ago
smatz
af07333c78
(svn r16430) -Fix: crash when a company is deleted while a dropdown with company names is open
16 years ago
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.
16 years ago
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.
16 years ago
rubidium
984bd3b98d
(svn r16427) -Codechange: replace a few magic numbers with an existing constant and unduplicate a few lines.
16 years ago
rubidium
462c1ec4f3
(svn r16426) -Fix [FS#2921] (r16390): articulated parts got the wrong image assigned
16 years ago
yexo
7425bf779d
(svn r16425) -Change [FS#2869]: Stop an AI when it takes too long to initialize or load
16 years ago
rubidium
168ae6f7e2
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
rubidium
0d99b6c71c
(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.
16 years ago
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
16 years ago
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.
16 years ago
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)
16 years ago
frosch
a4557c7da4
(svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted.
16 years ago
smatz
b7d065ce99
(svn r16415) -Fix (r13008): some 64bit architectures require size_t to be aligned at 8-byte boundary, ensure it for MemBlock
16 years ago
frosch
8109a74c95
(svn r16414) -Change: Make it harder to ignore/close important error messages. Esp. do not close them automatically after some time.
16 years ago
alberth
bc9c2e43fe
(svn r16413) -Codechange: Allow leading/trailing whitespace and comma in newgrf parameters instead of treating them as invalid.
16 years ago
frosch
855edb0839
(svn r16412) -Cleanup: Shuffle vehicle pointers in AddArticulatedParts(), and remove two of them.
16 years ago
frosch
0337485284
(svn r16411) -Fix (r16390): Building articulated roadvehicles caused infinite loop due to v->Next() pointing to v itself.
16 years ago
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'.
16 years ago
rubidium
de1a9b95c7
(svn r16409) -Change: don't add empty lines/duplicates of the previous command to the console's history
16 years ago
frosch
607583f091
(svn r16408) -Codechange: Silence a pointless newgrf debug message.
16 years ago
smatz
7854e68b95
(svn r16407) -Fix [FS#2913]: set CargoPacket::source to INVALID_STATION when source station is deleted
16 years ago
smatz
4bf70602a1
(svn r16406) -Codechange: constify parameters of CheckSubsidised()
16 years ago
alberth
6fc9b04861
(svn r16405) -Codechange: Move widget drawing code to functions to allow re-use.
16 years ago
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.
16 years ago
smatz
b2aed51f8e
(svn r16403) -Codechange: move code related to subsidies to separate file
16 years ago
rubidium
f2317d0d9d
(svn r16402) -Codechange: make Resolve a function of SpriteGroup
16 years ago
yexo
0b243d25cb
(svn r16400) -Add [NoAI]: add AISignList that can be used to get a list of valid signs. This makes AISign::GetMaxSignID obsolete.
16 years ago
frosch
8e30f0e75a
(svn r16399) -Fix (r4540): Don't treat pointer values as integer.
16 years ago
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.
16 years ago
rubidium
86710c5185
(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehicle
16 years ago
rubidium
f490394aa8
(svn r16396) -Codechange: split NewGRF spritegroup into multiple subclasses instead of using a big union
16 years ago
smatz
b270ca84ba
(svn r16395) -Fix (r16379): max sign ID can be higher than total number of signs
16 years ago
rubidium
6237fe1462
(svn r16394) -Codechange: move (NewGRF) cache variables into a separate struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
16 years ago
rubidium
da5661a0c8
(svn r16393) -Codechange: move VehicleRail to Train.
16 years ago
rubidium
c4b627af42
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
16 years ago
rubidium
80e94b9bb1
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
16 years ago
rubidium
7a37220881
(svn r16390) -Codechange: move u.road to RoadVehicle.
16 years ago
rubidium
d37b840cf3
(svn r16389) -Codechange: use RoadVehicle instead of Vehicle where appropriate
16 years ago
rubidium
c882248348
(svn r16388) -Codechange: move u.air to Aircraft
16 years ago
rubidium
ada3067960
(svn r16387) -Codechange: use Aircraft instead of Vehicle where appropriate
16 years ago
frosch
09d64ff79d
(svn r16386) -Codechange: Move ShowAdditionalText() to build_vehicle_gui and make it static.
16 years ago
rubidium
74ea34ca66
(svn r16385) -Codechange: move u.disaster to DisasterVehicle.
16 years ago