Commit Graph

10043 Commits

Author SHA1 Message Date
smatz 29cec22a2e (svn r20756) -Cleanup: no need to check return value of CallocT 2010-09-06 16:02:42 +00:00
smatz 8909a5a2da (svn r20755) -Fix (r19975): small memory leak at program exit (happens only once) 2010-09-06 15:47:11 +00:00
yexo 8cc43828e8 (svn r20754) -Fix [FS#4112]: assert when an industry previously build on water was flooded because it's grf changed/is missing 2010-09-06 15:23:16 +00:00
smatz fd54943c7a (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window 2010-09-06 14:14:09 +00:00
frosch e4091f16d0 (svn r20751) -Fix: IndustryCargoesWindow::HousesCanAccept() did not check climate-availability of houses. 2010-09-05 19:46:04 +00:00
translators 86a553f01f (svn r20750) -Update from WebTranslator v3.0:
belarusian - 2 changes by 
icelandic - 1 changes by grjonib
swedish - 3 changes by Zuu
thai - 34 changes by pa_o__
turkish - 14 changes by niw3
2010-09-05 17:45:17 +00:00
yexo a2ba35f57c (svn r20749) -Fix: allow overbuilding objects with buoys and ship depots 2010-09-05 16:33:32 +00:00
yexo 0e250f2bdf (svn r20748) -Fix: overbuilding an object tile with sea under it with a canal didn't take the cost for clearing the sea into account 2010-09-05 16:00:36 +00:00
yexo 323c526a4d (svn r20747) -Fix: overbuilding an object with water under it succeeded even for industries that can't be build on water 2010-09-05 16:00:04 +00:00
yexo a9cdcb02f5 (svn r20746) -Fix: set CMD_NO_WATER flag for CmdBuildBridge 2010-09-05 15:07:38 +00:00
yexo 72e2e21cb5 (svn r20745) -Fix: don't delete an object when trying to terraform a tile of it with canal under it. If we delete the object the terraforming will still fail due to the canal 2010-09-05 14:54:18 +00:00
yexo 0ab95ba636 (svn r20744) -Fix: overbuilding an object with water under it failed 2010-09-05 14:53:20 +00:00
frosch 42a996ec23 (svn r20743) -Fix: Make testruns of clearing an object tile not influence repeated testruns resp. the exec run. 2010-09-05 13:31:39 +00:00
frosch ce1cae81ea (svn r20742) -Fix: Evaluate DC_NO_WATER flag when clearing objects built on water. 2010-09-05 13:28:59 +00:00
frosch e9cd81953a (svn r20741) -Cleanup: Use IsTileOnWater() in more places. 2010-09-05 13:18:54 +00:00
frosch 435c8d33b0 (svn r20740) -Codechange: Add HasTileWaterClass() to test for tiletypes with WaterClass. 2010-09-05 13:18:26 +00:00
translators a9d2ba6069 (svn r20739) -Update from WebTranslator v3.0:
belarusian - 2 changes by 
esperanto - 11 changes by Christopher
spanish - 1 changes by Terkhen
2010-09-04 17:45:12 +00:00
alberth 4f435d9256 (svn r20738) -Codechange: Introduce a function for getting the number of industries that should be build. 2010-09-04 12:09:12 +00:00
alberth 21a80e0a0e (svn r20737) -Codechange: Introduce a function for advertising opening of a new industry. 2010-09-04 12:01:55 +00:00
alberth fcf92a20e2 (svn r20736) -Codechange: Introduce a new function for trying to create a new industry. 2010-09-04 11:59:12 +00:00
alberth 6c34a044c8 (svn r20735) -Codechange: Introduce GetIndustryGamePlayProbability(). 2010-09-04 11:29:42 +00:00
alberth 03f7733f83 (svn r20734) -Codechange: Rename GetScaledIndustryProbability() to GetScaledIndustryGenerationProbability(). 2010-09-04 11:16:40 +00:00
yexo 2d30613c3a (svn r20733) -Fix: when overbuilding an object with an industry, clear the complete object 2010-09-04 00:16:33 +00:00
yexo 2e054c19ad (svn r20732) -Fix: when trying to build a bridge over an object, try to autoremove the object if it's too high 2010-09-03 23:48:12 +00:00
yexo 0decc3e094 (svn r20731) -Fix (r20739): SmallVector did not have an assignment operator, causing invalid memory reads / double free 2010-09-03 23:04:02 +00:00
yexo 9a0033cbf6 (svn r20730) -Fix: crash when removing an object while the newgrf debug window was open for that object 2010-09-03 22:28:11 +00:00
yexo a45b598bfc (svn r20729) -Fix [FS#4107]: assert when overbuilding object 2010-09-03 21:50:51 +00:00
yexo bd379e283f (svn r20728) -Codechange: shuffle some code in CMD_BUILD_ROAD so it doesn't call CMD_LANDSCAPE_CLEAR in test-mode from exec-mode 2010-09-03 21:41:08 +00:00
yexo 9b5808a89d (svn r20727) -Fix [FS#4106]: compilation with --disable-ai was broken (cirdan) 2010-09-03 20:32:33 +00:00
translators 8c9c3a361a (svn r20726) -Update from WebTranslator v3.0:
belarusian - 5 changes by KorneySan
finnish - 2 changes by jpx_
french - 4 changes by glx
italian - 4 changes by lorenzodv
korean - 2 changes by junho2813
norwegian_nynorsk - 1 changes by mantaray
polish - 5 changes by silver_777, voythas
russian - 6 changes by Lone_Wolf
spanish - 2 changes by Terkhen
2010-09-03 17:45:31 +00:00
glx 72bd89b900 (svn r20722) -Fix (r20719): signed/unsigned side effect makes a small negative value become a big positive value 2010-09-03 12:52:09 +00:00
rubidium 29eae4a378 (svn r20721) -Fix: objects that can be built on water shouldn't be drowned. 2010-09-02 20:45:54 +00:00
frosch 48767d1bef (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 2010-09-02 20:00:48 +00:00
frosch 48d8f16653 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 2010-09-02 19:34:44 +00:00
translators 5e258efe6b (svn r20718) -Update from WebTranslator v3.0:
belarusian - 2 changes by KorneySan
croatian - 2 changes by VoyagerOne
dutch - 2 changes by habell
german - 2 changes by planetmaker
hungarian - 2 changes by IPG
icelandic - 6 changes by grjonib
irish - 2 changes by tem
norwegian_bokmal - 2 changes by Tacky93
norwegian_nynorsk - 3 changes by Tacky93
russian - 2 changes by Lone_Wolf
serbian - 2 changes by etran
slovak - 2 changes by keso53
2010-09-02 17:45:39 +00:00
yexo 7b0fd807fb (svn r20717) -Fix [FS#4103]: water class was not set for stations 2010-09-01 23:41:56 +00:00
yexo c07fdab16c (svn r20716) -Feature: add airport class and airport name to the land info tool 2010-09-01 23:14:15 +00:00
rubidium e90e831f2e (svn r20714) -Fix: bit 9 of object's flags implies bit 3 is set, so just test for either of the bits being set 2010-09-01 20:09:15 +00:00
rubidium 7ee2c31f99 (svn r20713) -Fix (r20654): when ignoring action0 object properties, ignore property 13 correctly 2010-09-01 19:45:50 +00:00
terkhen 5df8e6abcf (svn r20712) -Fix [FS#4094]: Do not use new game settings when creating many random industries in the scenario editor. 2010-09-01 19:04:06 +00:00
terkhen efef4becbd (svn r20711) -Fix [FS#4094]: Do not use new game settings when creating many random towns at the scenario editor. 2010-09-01 19:00:32 +00:00
terkhen c6db763781 (svn r20710) -Codechange: Clarify the name of some town generation variables. 2010-09-01 18:52:27 +00:00
translators 7a5b995157 (svn r20709) -Update from WebTranslator v3.0:
irish - 28 changes by tem
2010-09-01 17:45:06 +00:00
rubidium dd2c38ea82 (svn r20708) -Fix [FS#4101]: upon company bankruptcy some objects weren't removed properly 2010-09-01 06:15:26 +00:00
translators b610b1af61 (svn r20707) -Update from WebTranslator v3.0:
belarusian - 22 changes by KorneySan
german - 6 changes by planetmaker
korean - 2 changes by junho2813
portuguese - 21 changes by SupSuper
serbian - 10 changes by etran
slovak - 78 changes by comp
2010-08-31 17:45:21 +00:00
rubidium cf8f6571fc (svn r20706) -Fix (r20664): land slope check wasn't called when it should be called 2010-08-31 16:17:22 +00:00
yexo 0068c02244 (svn r20705) -Fix: graphic glitch when switching to a different-sized font while the chat message box was visible 2010-08-31 12:18:28 +00:00
translators 2907f2afc2 (svn r20699) -Update from WebTranslator v3.0:
dutch - 11 changes by habell
esperanto - 7 changes by Christopher
hungarian - 7 changes by IPG
icelandic - 25 changes by grjonib
italian - 8 changes by lorenzodv
korean - 7 changes by junho2813
norwegian_bokmal - 82 changes by mantaray
romanian - 10 changes by tonny
spanish - 10 changes by Terkhen
2010-08-30 17:45:29 +00:00
yexo 6eb3ef7bc3 (svn r20697) -Fix [FS#4084]: call the new function after resizing a window so it's not possible a window becomes unmoveable 2010-08-30 14:52:28 +00:00
yexo 47494b2744 (svn r20696) -Codechange: create a new function to make sure part of the caption bar is visible when creating a window 2010-08-30 14:51:11 +00:00
yexo 6446a928dc (svn r20695) -Codechange: move PreventHiding to another location 2010-08-30 14:50:42 +00:00
yexo cf2032d0f8 (svn r20694) -Fix [FS#4087]: empty newgrf presets were not selectable 2010-08-30 10:52:27 +00:00
yexo e91e2498c7 (svn r20693) -Fix: use strncmp instead of memcmp for comparing strings 2010-08-30 10:49:02 +00:00
yexo 9a05f8004b (svn r20692) -Fix [FS#4055]: crash after downloading missing content 2010-08-30 10:16:04 +00:00
rubidium 562df2803f (svn r20691) -Fix (r20690): unmessup a broken string 2010-08-29 18:39:28 +00:00
translators 0fdab5f5a5 (svn r20690) -Update from WebTranslator v3.0:
belarusian - 10 changes by Wowanxm
catalan - 11 changes by arnau
traditional_chinese - 14 changes by josesun
croatian - 10 changes by VoyagerOne
finnish - 10 changes by jpx_
french - 10 changes by glx
german - 13 changes by planetmaker
hungarian - 3 changes by IPG
icelandic - 11 changes by grjonib
italian - 2 changes by lorenzodv
polish - 10 changes by voythas
russian - 14 changes by Lone_Wolf
slovenian - 34 changes by Necrolyte, ntadej
swedish - 12 changes by Zuu
2010-08-29 17:45:46 +00:00
alberth 9f5a96ead2 (svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file. 2010-08-29 15:58:43 +00:00
alberth 219ad6e003 (svn r20688) -Codechange: Rename Queue struct to BinaryHeap. 2010-08-29 13:47:15 +00:00
alberth ed72338513 (svn r20687) -Codechange: Replace the THISBIN_HEAP_ARR macro by a GetElement() method. 2010-08-29 13:46:34 +00:00
alberth bc6a5a5e64 (svn r20686) -Codechange: Make init_BinaryHeap() a method. 2010-08-29 13:42:38 +00:00
alberth 2c962548e5 (svn r20685) -Codechange: Make BinaryHeap_Clear() a method. 2010-08-29 13:38:43 +00:00
alberth b06cedc905 (svn r20684) -Codechange: Make BinaryHeap_Free() a method. 2010-08-29 13:38:27 +00:00
alberth 3f0cd8c9f0 (svn r20683) -Codechange: Make BinaryHeap_Delete() a method. 2010-08-29 13:38:06 +00:00
alberth 10b182482e (svn r20682) -Codechange: Make BinaryHeap_Pop() a method. 2010-08-29 13:36:50 +00:00
alberth 92801ac718 (svn r20681) -Codechange: Make BinaryHeap_Push() a method, introduce temporary THISBIN_HEAP_ARR macro. 2010-08-29 13:35:51 +00:00
alberth 68e2a07479 (svn r20680) -Codechange: Remove the now useless union and struct wrappers around the binary heap data. 2010-08-29 13:34:08 +00:00
alberth ded2acf02e (svn r20679) -Codechange: Remove unused insertion sorter. 2010-08-29 13:32:39 +00:00
alberth fa6203fdc3 (svn r20678) -Codechange: Remove unused NetworkFindClientInfoFromIndex(), NetworkFindClientInfoFromIP(). 2010-08-29 12:37:49 +00:00
rubidium 7af4449fef (svn r20677) -Fix (r20136): copy-paste error (jwm) 2010-08-29 09:41:50 +00:00
rubidium dd0a8a573d (svn r20676) -Codechange: it's not needed to supply two almost identical vars 2010-08-28 22:26:25 +00:00
rubidium 00415213f3 (svn r20675) -Add [FS#4077]: method to access the (action 14) NewGRF version of other NewGRFs 2010-08-28 21:45:44 +00:00
alberth be59c90e86 (svn r20674) -Codechange: Remove declared functions that do not exist (anymore) otherwise. 2010-08-28 20:15:45 +00:00
rubidium a8b992f4fd (svn r20673) -Codechange: add support for inspecting objects 2010-08-28 19:48:46 +00:00
rubidium 60655522ca (svn r20672) -Remove: some stale strings 2010-08-28 19:46:35 +00:00
rubidium c862ab42c9 (svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor 2010-08-28 19:45:56 +00:00
rubidium 7b16c7650b (svn r20670) -Add: support for action F
-Add: a window to select (NewGRF) objects
2010-08-28 19:43:41 +00:00
rubidium 2d10b0f11d (svn r20669) -Codechange: trigger the whole object every 256 ticks instead of every 250 ticks 2010-08-28 19:13:20 +00:00
rubidium 41a80490be (svn r20668) -Codechange: add (more) support for bridges over objects 2010-08-28 19:02:21 +00:00
rubidium 3e67b4fe5f (svn r20667) -Codechange: implement the autoslope callback for objects 2010-08-28 19:00:21 +00:00
rubidium d4403cb649 (svn r20666) -Codechange: enable drawing of (NewGRF) objects 2010-08-28 18:57:32 +00:00
rubidium fba19a41d5 (svn r20665) -Codechange: make clearing object tiles behave (more) like TTDPatch 2010-08-28 18:56:07 +00:00
rubidium ca7fe458a2 (svn r20664) -Codechange: implement the land slope callback for objects 2010-08-28 18:55:20 +00:00
rubidium 9991c8677d (svn r20663) -Codechange: add the GRF name to the tile info window 2010-08-28 18:54:12 +00:00
rubidium 60fe27db50 (svn r20662) -Codechange: implement object animation 2010-08-28 18:51:47 +00:00
rubidium ee8c37c3d9 (svn r20661) -Codechange: implement the "decide colour" callback for objects 2010-08-28 18:50:32 +00:00
rubidium 852bde0bad (svn r20660) -Codechange: implement (most) of action2 support for objects 2010-08-28 18:49:39 +00:00
rubidium 8fd9728e19 (svn r20659) -Feature: make the (flat) area around an industry configurable (Eddi|zuHause) 2010-08-28 18:37:49 +00:00
rubidium e0ba6550d2 (svn r20658) -Codechange: add the colour of an object to the object instance 2010-08-28 18:28:34 +00:00
rubidium b376f8ae15 (svn r20657) -Codechange: add function to draw NewGRF tileseq in the GUI 2010-08-28 18:23:58 +00:00
rubidium bd48893478 (svn r20656) -Codechange: implement counting of objects 2010-08-28 18:23:14 +00:00
rubidium c481e3b110 (svn r20655) -Codechange: implement reading the action3 of objects 2010-08-28 18:22:24 +00:00
rubidium 23ba40d385 (svn r20654) -Codechange: implement reading action0 of objects 2010-08-28 18:21:09 +00:00
translators 3a9f54a4f8 (svn r20653) -Update from WebTranslator v3.0:
simplified_chinese - 23 changes by ww9980
traditional_chinese - 2 changes by ww9980
esperanto - 6 changes by Christopher
icelandic - 108 changes by grjonib
thai - 6 changes by angelix
2010-08-28 17:45:17 +00:00
rubidium 164a923c69 (svn r20652) -Codechange: implement a function to get the index of a spec. 2010-08-28 17:38:07 +00:00
rubidium 0a86eac2f1 (svn r20651) -Codechange: add a function to determine whether an object is available and use it 2010-08-28 17:36:28 +00:00
rubidium 6348aa7964 (svn r20650) -Codechange: add some variables to the object's spec 2010-08-28 17:35:00 +00:00
rubidium f9a9b0ed4a (svn r20649) -Codechange: implement classes for objects 2010-08-28 17:32:30 +00:00
rubidium 1ec1f1ef37 (svn r20648) -Codechange: implement the NewGRF override manager for objects 2010-08-28 17:30:55 +00:00
rubidium 34da98f2b1 (svn r20647) -Codechange: update some of the object spec information 2010-08-28 17:29:12 +00:00
rubidium f1f1c71a41 (svn r20646) -Codechange: make the code flow of breakdown handling a bit clearer 2010-08-28 14:18:56 +00:00