Commit Graph

9834 Commits (cc658392ebef76ca21efc7c3ab1aaaa93c50448e)

Author SHA1 Message Date
frosch 57c063250f (svn r20457) -Codechange: Remove _scrolling_scrollbar and WF_SCROLL_MIDDLE and instead store the widget index of the being scrolled scrollbar in the Window. 14 years ago
frosch 66e48dfdce (svn r20456) -Codechange: Add separate nested widget class for scrollbars. 14 years ago
frosch 037d2ed436 (svn r20455) -Codechange: Rename some vscroll and vscroll2 to more suitable names. 14 years ago
frosch a8f4322a03 (svn r20454) -Fix: some whitespace. 14 years ago
frosch 71ca58c2bb (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
frosch 629b350a71 (svn r20451) -Codechange: Add helper function Window::GetScrollbar() to get the Scrollbar belonging to a scrollbar widget. 14 years ago
rubidium cfde445ec9 (svn r20450) -Fix: same the airport tile ID mapping as well 14 years ago
rubidium d6004d17d4 (svn r20449) -Codechange: unduplicate saving/loading of NewGRF ID + local id -> OpenTTD spec mappings 14 years ago
rubidium e0a3a0fd54 (svn r20448) -Codechange: make some functions that can be const const 14 years ago
translators 6b4f36533c (svn r20447) -Update from WebTranslator v3.0:
belarusian - 2 changes by Wowanxm
finnish - 2 changes by jpx_
french - 2 changes by glx
german - 3 changes by planetmaker
hungarian - 17 changes by IPG
irish - 7 changes by tem
romanian - 2 changes by tonny
spanish - 3 changes by Terkhen
swedish - 3 changes by Zuu
14 years ago
rubidium ab5b0ceff2 (svn r20446) -Codechange: unify the location of the water class 14 years ago
frosch 43d6740f2d (svn r20445) -Codechange (r20435): Some compilers (esp. mine) do not comply to the specs. 14 years ago
rubidium 6245a9556b (svn r20444) -Cleanup: unify writing of {NUM} x {NUM} 14 years ago
rubidium 1dbd2223ad (svn r20443) -Codechange: more TileHash to a more generic location 14 years ago
translators 091f8ff731 (svn r20442) -Update from WebTranslator v3.0:
czech - 2 changes by Hadez
dutch - 2 changes by habell
french - 2 changes by glx
italian - 2 changes by lorenzodv
polish - 2 changes by lion
spanish - 2 changes by Terkhen
14 years ago
rubidium cde8a44a11 (svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail. 14 years ago
rubidium 10ced06205 (svn r20440) -Fix: MSVC warning about shifting a 32 bit value and then converting it to 64 bits 14 years ago
rubidium 91f31b59e8 (svn r20439) -Fix [FS#4023]: MinGW compiler complaining about converting -1 to an unsigned int 14 years ago
rubidium 2a9f9b092b (svn r20438) -Fix [FS#4022]: for docks "facing" north, i.e. having the watery part a the northern side, the joiner had an off-by-one to the north w.r.t. the station spread against the actual other (correct) building tools 14 years ago
rubidium 29b489a055 (svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well 14 years ago
rubidium 3d21fb44aa (svn r20436) -Codechange: use GRFFilePropsBase's spritegroup for stations. 14 years ago
rubidium ca7a067b7a (svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare it for more spritegroups 14 years ago
rubidium 21e4e7ce06 (svn r20427) -Revert (r20105): even though MCI has less problems with wrongly pitched songs than dmusic, it crashed instead. 14 years ago
translators 1ec0ce3003 (svn r20425) -Update from WebTranslator v3.0:
simplified_chinese - 14 changes by pda1573
traditional_chinese - 32 changes by josesun
chuvash - 25 changes by mefisteron
croatian - 3 changes by VoyagerOne
estonian - 44 changes by KSiimson
german - 3 changes by planetmaker
hungarian - 1 changes by IPG
italian - 1 changes by lorenzodv
russian - 3 changes by Lone_Wolf
serbian - 2 changes by etran
14 years ago
terkhen 78fd08c7b2 (svn r20424) -Fix: Rename members of TileContext (TC_NORMAL conflicted with an existing define on MinGW). 14 years ago
frosch 7f1425c333 (svn r20423) -Change [FS#3947]: Make snow on bridges depend on bridgeheight. 14 years ago
frosch b6cf38a912 (svn r20422) -Change [FS#3947]: Resolve tracksprites on bridges always using the southern bridgehead as tile. 14 years ago
frosch c2b1c624dd (svn r20421) -Change [FS#3947]: Make snowyness of bridgehead depend on the tileheight at the entry edge. 14 years ago
frosch 48c5091a7c (svn r20420) -Codechange: Add TileContext enum instead of using a bool. 14 years ago
frosch 67c21f7e01 (svn r20419) -Codechange: Rename dummy_land.cpp to void_cmd.cpp 14 years ago
frosch a56f8ba801 (svn r20418) -Fix [FS#4017](r20125): During world generation the snow-mapbits are not yet available, so test the snowline variable directly (as before). 14 years ago
rubidium 747634a687 (svn r20417) -Fix (r20345) [FS#4018]: the offset stored for objects shouldn't be substracted immediately from the TileIndex as that doesn't quite do the right thing 14 years ago
translators f072c099ee (svn r20416) -Update from WebTranslator v3.0:
finnish - 3 changes by jpx_
german - 1 changes by BRFBlake
italian - 8 changes by lorenzodv
romanian - 2 changes by tonny
14 years ago
alberth 7ad1f5ccef (svn r20415) -Add: Clicking at the smallmap disables updates from the industry chain window. 14 years ago
alberth 2fa665114e (svn r20414) -Feature: Enable industries in the smallmap displayed in the industry chain window. 14 years ago
rubidium 7362ff4409 (svn r20413) -Fix (r20326): some comments got a bit outdated 14 years ago
alberth e1e8e245a0 (svn r20412) -Codechange: Replace an if by a switch in IndustryCargoesWindow::OnClick. 14 years ago
rubidium 3da3d131c6 (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. 14 years ago
alberth abc14d8fbf (svn r20410) -Codechange: Move smallmap map-type switching to a function. 14 years ago
rubidium 412bb37f59 (svn r20409) -Codechange: reduce the number of includes needed by newgrf.h 14 years ago
frosch 5f874b90f9 (svn r20408) -Fix [FS#4013]: PBS reservations were always displayed on halftile foundations if the railtype uses overlays. 14 years ago
rubidium ef50a89ca5 (svn r20407) -Codechange: make AirportClass use the new generic class 14 years ago
rubidium edbadde301 (svn r20406) -Codechange: make StationClass use the new generic class 14 years ago
rubidium cb4ab6a231 (svn r20405) -Add: generic class for "classes" for NewGRFs, e.g. the Station classes and Airport classes 14 years ago
rubidium 2b645d1b0d (svn r20404) -Codechange: remove the need for StationSpec::allocated 14 years ago
rubidium 2d3ee123af (svn r20402) -Codechange: rename the airport/station class id to something slightly more generic 14 years ago
rubidium 6d6939f844 (svn r20401) -Codechange: let HouseSpec use GRFFileProps 14 years ago
rubidium b6a0806948 (svn r20400) -Codechange: let StationSpec use GRFFilePropsBase 14 years ago
yexo 178f74c31c (svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type 14 years ago
rubidium af9d8824bd (svn r20398) -Codechange: move some variables of GRFFileProps into (the new) GRFFilePropsBase 14 years ago
alberth f5d972cade (svn r20397) -Feature: Display industry smallmap colour in the industry chain window. 14 years ago
yexo e80f339086 (svn r20396) -Codechange: introduce a helper function to test whether an industry temporarily refues to accept some cargo 14 years ago
translators 50fe2264ec (svn r20395) -Update from WebTranslator v3.0:
romanian - 126 changes by tonny
russian - 2 changes by Lone_Wolf
serbian - 5 changes by etran
swedish - 1 changes by Zuu
ukrainian - 9 changes by Fixer
14 years ago
yexo 0b4d80ae54 (svn r20394) -Fix [FS#4010]: make the default minimum width for editboxes 10 pixels 14 years ago
alberth 3536357cc6 (svn r20393) -Fix [FS#3993]: Prevent taking over competitors when you'd get too many vehicles. 14 years ago
alberth 422a1ad242 (svn r20392) -Fix [FS#3993]: Prevent buying bankrupt companies when you'd get too many vehicles. 14 years ago
alberth 5cfc029523 (svn r20391) -Fix [FS#3993]: Prevent buying more vehicles than allowed. 14 years ago
alberth e0e66b6ed0 (svn r20390) -Codechange: Move company vehicle counting to vehicle.cpp. 14 years ago
rubidium 90a35d2e5b (svn r20389) [NoAI] -Add: AIOrder::IsVoidOrder to find void "(Invalid Order)" orders.
[NoAI] -Change: AIOrder::GetOrderFlags returns AIOrder::AIOF_INVALID for void orders.
14 years ago
translators d54f2ba21f (svn r20388) -Update from WebTranslator v3.0:
belarusian - 216 changes by KorneySan, Wowanxm
croatian - 5 changes by VoyagerOne
dutch - 5 changes by Yexo
hungarian - 7 changes by IPG
italian - 5 changes by lorenzodv
korean - 5 changes by junho2813
polish - 5 changes by lion
portuguese - 10 changes by SupSuper
romanian - 11 changes by tonny
russian - 9 changes by KorneySan
spanish - 5 changes by Terkhen
swedish - 9 changes by tool
vietnamese - 4 changes by nglekhoi
14 years ago
alberth 16dfc7a04d (svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'. 14 years ago
alberth d9c9ae8fcf (svn r20386) -Fix: Initialize fund-industry buttons when opening window. 14 years ago
alberth 3ca0ed3e82 (svn r20385) -Codechange: Move updating of buttons in the fund-industry window to a method. 14 years ago
frosch 01833039bd (svn r20384) -Fix: Update cursor dimensions when reloading grfs resp. changing base graphics, so the cursor does not glitch if it becomes bigger. 14 years ago
translators b2181365b0 (svn r20383) -Update from WebTranslator v3.0:
belarusian - 672 changes by KorneySan, Wowanxm
croatian - 2 changes by VoyagerOne
finnish - 5 changes by jpx_
french - 5 changes by glx
german - 4 changes by dihedral
greek - 2 changes by fumantsu
hungarian - 10 changes by IPG
irish - 4 changes by tem
marathi - 44 changes by amitst
romanian - 77 changes by kkmic, tonny
russian - 6 changes by KorneySan
swedish - 17 changes by Zuu
14 years ago
frosch 1cd34128d6 (svn r20382) -Codechange: Hide default airport layoutname if there is only one layout. 14 years ago
frosch 66dd872bdc (svn r20379) -Codechange: Draw airport preview using company colours. 14 years ago
yexo d00cf48323 (svn r20377) -Feature: [NewGRF] prop 0x0A tile layout for airports 14 years ago
yexo a3a24f4c68 (svn r20376) -Feature [FS#3093]: add setting for none/original/more smoke (SirkoZ) 14 years ago
yexo f8b7163b34 (svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid 14 years ago
yexo 2e6713ce95 (svn r20374) -Codechange: add persistant storage for airports 14 years ago
yexo 00902294b3 (svn r20373) -Feature: [NewGRF] callback 0x156 to use another name for airport layouts than the default "Layout x" 14 years ago
yexo d6fa76b044 (svn r20372) -Feature; [NewGRF] callback 0x155 to display extra information about an airport in the build gui 14 years ago
yexo 5bacbba9f2 (svn r20371) -Codechange: add general function to call text callbacks for airports 14 years ago
yexo a48dbd7c51 (svn r20370) -Add: [NewGRF] new action 5 block to add airport preview sprites 14 years ago
yexo 3e6f8165d4 (svn r20369) -Feature: preview sprites for airports 14 years ago
yexo 7e4bdbbc9d (svn r20368) -Codechange: automatically rotate all nodes for airport movement if the airport is rotated 14 years ago
yexo c421b6fef5 (svn r20367) -Codechange; don't use a pointer to access the AirportMovingData of the current position 14 years ago
yexo d2f9b87ccd (svn r20366) -Codechange: store the rotation of the airport layout in the station struct and use it to rotate hangar tiles 14 years ago
yexo 330c2f979e (svn r20365) -Codechange: allow multiple layouts for one airport statemachine, store the layout number 14 years ago
yexo 6321eb5a00 (svn r20364) -Codechange: add infrastructure for airport callbacks 14 years ago
translators fe6c557705 (svn r20363) -Update from WebTranslator v3.0:
belarusian - 83 changes by Wowanxm
dutch - 2 changes by habell
german - 9 changes by dihedral
italian - 5 changes by lorenzodv
korean - 2 changes by junho2813
spanish - 2 changes by Terkhen
14 years ago
yexo 63951fada6 (svn r20362) -Codechange: use correct parameter type for SetFill in airport gui 14 years ago
terkhen 2339b34021 (svn r20361) -Fix [FS#3989]: Stop vehicle following after zooming out. 14 years ago
rubidium cf88a1bc3b (svn r20360) -Update: move Belarusian to the finished languages
-Add: stub for Marathi language (one of the languages in India)
14 years ago
translators d4cbd1d784 (svn r20359) -Update from WebTranslator v3.0:
belarusian - 597 changes by KorneySan, Wowanxm
finnish - 2 changes by jpx_
french - 2 changes by glx
polish - 5 changes by silver_777
russian - 20 changes by KorneySan
serbian - 2 changes by etran
14 years ago
rubidium 3fd1fc35e6 (svn r20358) -Fix [FS#4008]: (r20281) crash when building some stuff when the measurement tooltip is disabled 14 years ago
frosch ba527ec56e (svn r20357) -Fix (r20356): Call GetAllRoadBits() only if there is road. 14 years ago
rubidium b74cee45be (svn r20356) -Fix [FS#3983]: apparantly one generic error message can't be understood... 14 years ago
michi_cc fff8524fb9 (svn r20355) -Fix (r20353): Stale comment. 14 years ago
rubidium e23db5db21 (svn r20354) -Fix: some compilation errors in (unfinished) translations 14 years ago
michi_cc 4d927af488 (svn r20353) -Add: [NewGRF] Support for callback 0x147 ("add sprite offset") for canals. 14 years ago
michi_cc bd2f7e998c (svn r20352) -Add: [NewGRF] Support for property 09, feature 05, i.e alternate canal sprite layout. 14 years ago
michi_cc f67c727c68 (svn r20351) -Codechange: Uncouple water lock and depot drawing. 14 years ago
translators 71f9c4fe79 (svn r20350) -Update from WebTranslator v3.0:
belarusian - 1070 changes by KorneySan, Wowanxm
simplified_chinese - 7 changes by pda1573
croatian - 2 changes by VoyagerOne
dutch - 2 changes by habell
finnish - 2 changes by jpx_
french - 2 changes by glx
german - 44 changes by NG
indonesian - 6 changes by prof
korean - 2 changes by junho2813
russian - 8 changes by KorneySan, Lone_Wolf
serbian - 2 changes by etran
spanish - 6 changes by Terkhen
vietnamese - 2 changes by nglekhoi
14 years ago
rubidium d1a7f7a672 (svn r20349) -Fix: don't pay stuff you didn't have to pay for previously :) 14 years ago
rubidium fc39a8bec1 (svn r20348) -Fix [FS#4004]: [NoAI] Ship depots were constructed along the wrong axis 14 years ago
yexo 04a9a58ecd (svn r20346) -Change: scan for tar files before scanning for AIs/NewGRFs so new AIs/NewGRFs inside a tar file are found 14 years ago
rubidium 87386cabc4 (svn r20345) -Codechange: unify removing of objects a bit more 14 years ago
yexo e2d706cd21 (svn r20344) -Feature: add rescan_newgrf console command 14 years ago
rubidium 0664955db7 (svn r20343) -Fix (r20342): don't start svn commit too early... it won't see the later changes 14 years ago
rubidium 725c181445 (svn r20342) -Codechange: unify the construction of objects 14 years ago
rubidium 92ac2e485b (svn r20341) -Codechange: pass the tile of the HQ instead of the company to UpdateCompanyHQ 14 years ago
rubidium 1c86321d35 (svn r20340) -Codechange: introduce some flags for objects and use them in some places 14 years ago
rubidium d687b49a4e (svn r20339) -Codechange: reorder the HQ drawing data so it's in a slightly more logical order from the map array's point of view. 14 years ago
rubidium fbde46c028 (svn r20338) -Codechange: unify the unmovable tile drawing 14 years ago
rubidium 3bfe26c69d (svn r20337) -Codechange: unify the construction of objects on the map 14 years ago
rubidium f812e80002 (svn r20336) -Codechange: rework the HQ updating 14 years ago
rubidium ffedcc6533 (svn r20335) -Codechange: change the name of some unmovable map accessors 14 years ago
rubidium f44c51577b (svn r20334) -Codechange: reorder the unmovable bits a bit for futher extension 14 years ago
frosch 1a9d5ae076 (svn r20333) -Fix (r20332): Mask second operand to 5 bits to avoid differences between platforms. 14 years ago
frosch 0e5c562da4 (svn r20332) -Add: [NewGRF] AdvVarAct2 operators for SHL, SHR and SAR. 14 years ago
yexo 689d4bef04 (svn r20331) -Doc: some more airport-related code 14 years ago
rubidium aae7ef73bb (svn r20330) -Codechange: unify the removal of unmovables a bit 14 years ago
yexo d65a967027 (svn r20329) -Codechange: align the data of the original airports so it's better readable 14 years ago
rubidium 49cee72fa4 (svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command 14 years ago
rubidium f2d71c1196 (svn r20327) -Change: don't let building e.g. road remove light houses and transmitters in the scenario editor 14 years ago
rubidium 55129f1fbb (svn r20326) -Codechange: move UnmovableType to its own file 14 years ago
yexo 5ae4e27446 (svn r20325) -Fix (r20322): surround variable declarations in a switch-block with {} 14 years ago
yexo c7516f230f (svn r20324) -Doc: add doxygen comments to the Airport struct belonging to a station 14 years ago
terkhen 7a6df202d0 (svn r20323) -Codechange: Move Delete town code to a command. 14 years ago
terkhen ca0751adb8 (svn r20322) -Codechange: Move Expand town code to a command. 14 years ago
rubidium f2edc728e6 (svn r20321) -Codechange: rename GetUnmovableSpec to UnmovableSpec::Get and add+use a ::GetByTile 14 years ago
alberth 0e900039f3 (svn r20320) -Doc: Small Doxygen and normal comment fixes, and an missed addition. 14 years ago
alberth 4781f1fa92 (svn r20319) -Codechange: Align comments, add indent to a function call. 14 years ago
alberth 5556955960 (svn r20318) -Doc: Doxygen additions. 14 years ago
alberth 73f45d16d1 (svn r20317) -Codechange: Move variable declaration to their first use. 14 years ago
rubidium 00dcb16760 (svn r20316) -Document: some members/structs and functions and rename some slightly to better catch their meaning 14 years ago
michi_cc 9f5e49eaad (svn r20315) -Codechange: Replace magic numbers by named constants. 14 years ago
michi_cc e34faa8e15 (svn r20314) -Fix (r20312): Too many parameters, missed one. 14 years ago
michi_cc 3c7b220d59 (svn r20312) -Doc: Add missing doxygen comments to road map accessors. 14 years ago
yexo dff871b40d (svn r20311) -Codechange: don't reserve extra space in the savegame that is never used 14 years ago
translators 9b9d8088b0 (svn r20310) -Update from WebTranslator v3.0:
basque - 8 changes by Thadah
belarusian - 354 changes by KorneySan, Wowanxm
simplified_chinese - 5 changes by pda1573
traditional_chinese - 1 changes by pda1573
chuvash - 17 changes by mefisteron
french - 4 changes by glx
greek - 18 changes by fumantsu
italian - 4 changes by lorenzodv
brazilian_portuguese - 15 changes by Tucalipe
russian - 28 changes by KorneySan
swedish - 14 changes by tool
thai - 23 changes by sf_alpha
ukrainian - 14 changes by Madvin
vietnamese - 9 changes by nglekhoi
14 years ago
yexo 6371e6c4db (svn r20307) -Fix (r20305): the palette for baseset extra grfs was never set so it defaulted to dos 14 years ago
rubidium dfb0a2c9a5 (svn r20305) -Change: reduce OpenTTD's install size by roughly 460 KiB by only providing the "extra" base graphics in one palette and doing the conversion upon loading; the conversion has existed for a while, but now the NewGRF can tell its palette using Action 14 thus it can enable the conversion for only that NewGRF. 14 years ago
terkhen cded122da5 (svn r20303) -Feature: [NewGRF] Air drag property support for trains and road vehicles. Air drag for vehicles with air drag not set or set to zero will use a default value depending on their max speed. 14 years ago
terkhen 7d0297f967 (svn r20302) -Add: Method for getting the air drag of a ground vehicle. 14 years ago
terkhen 8203749e68 (svn r20301) -Add: [NewGRF] Read air drag property from Action 0 for trains. 14 years ago
terkhen 5c633159ca (svn r20300) -Add: Air drag field to the rail engine information. 14 years ago
terkhen 1fd66d7cc4 (svn r20299) -Add: Make trains and road vehicles use a different area value to calculate air drag. 14 years ago
terkhen 14d58e9978 (svn r20298) -Fix: GetInitialMaxSpeed did not return the correct value for road vehicles. 14 years ago
terkhen 6dde1417d8 (svn r20297) -Doc: Explain the default tractive effort value used by standard road vehicles. 14 years ago
alberth f0ebe530ad (svn r20296) -Fix: Fallback font selection due to missing glyphs did not work as intended. 14 years ago
frosch edf9b36b81 (svn r20294) -Fix [FS#3996](r20281): 'break' got in wrong position. 14 years ago
yexo 9dbe84922b (svn r20293) -Doc: add more doxygen comments in ai_gui.cp 14 years ago
yexo 6bfe29308c (svn r20292) -Codechange: remove some unused variables from AIConfigWindow 14 years ago
alberth ee01ec9136 (svn r20291) -Codechange: Unify break coding style. 14 years ago
alberth c32e35c30d (svn r20290) -Codechange: Add missing 'break' statements. 14 years ago
terkhen 80c43f52e8 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago