Commit Graph

548 Commits

Author SHA1 Message Date
rubidium ca0521f89f (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 2009-10-24 14:53:55 +00:00
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 2009-10-17 14:29:10 +00:00
frosch 9a9d0ee7c0 (svn r17728) -Cleanup: Remove some more unneeded/unused parameters. 2009-10-06 19:52:38 +00:00
frosch a4835e3f0b (svn r17719) -Change: [NoAI] Make AIEngine:CanRefitCargo() not report refittability to Mail by default for aircraft. It is not necessarily true, and the special case of carrying both passenger&mail is better handled by AIs themself than by the API. 2009-10-05 20:21:12 +00:00
smatz 6c7f8fc8b4 (svn r17701) -Codechange: don't start line with a space if it's not inside comment 2009-10-04 20:51:50 +00:00
frosch b243f6ca97 (svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into EngineInfo::refit_mask during initialisation. 2009-10-04 20:33:18 +00:00
rubidium e7fb5f00e7 (svn r17697) -Codechange: coding style in the automatically generated squirrel wrapper code 2009-10-04 18:16:44 +00:00
smatz 854af7d70f (svn r17694) -Codechange: don't break $ to two lines in squirrel_export.awk 2009-10-04 17:26:43 +00:00
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
smatz 32cbe57178 (svn r17692) -Codechange: minor coding style fixes 2009-10-04 17:10:57 +00:00
rubidium c847f5c04e (svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant. 2009-09-30 21:07:54 +00:00
yexo 52f2359edd (svn r17627) -Document [FS#3216]: The remaining functions in info.nut 2009-09-23 22:15:57 +00:00
rubidium 6032f406ad (svn r17621) -Document [FS#3216]: most of the functions an AI can/must use in their instantiation of AIInfo. 2009-09-23 16:07:17 +00:00
yexo 3a7da30922 (svn r17609) -Fix: the dummy AI had no API version set, causing the 'API compatibility script not found' error to be printed when loading it 2009-09-22 11:10:04 +00:00
yexo bbce4fba25 (svn r17593) -Fix (r17591): as always after a noai commit ... 2009-09-20 19:01:38 +00:00
yexo 12ef0046dd (svn r17591) -Add [NoAI] [FS#3212]: AIAirport::IsAirportInformationAvailable. Also update several preconditions so it's now possible to get information on airports types that can no longer be build (small airport after 1960) 2009-09-20 18:38:43 +00:00
alberth 116c77c342 (svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array. 2009-09-19 11:31:12 +00:00
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 2009-09-19 09:51:14 +00:00
rubidium e5755bd950 (svn r17566) -Fix: ai_basestation.hpp.sq linked to the wrong header; it did work though 2009-09-18 14:23:39 +00:00
rubidium f2487381ce (svn r17545) -Fix [FS#3202]: [NoAI] AIs had 'infinite' time when running code from the global scope 2009-09-15 16:18:10 +00:00
rubidium 227824f753 (svn r17544) -Fix [FS#3202]: [NoAI] Crash when doing commands in the 'global' scope 2009-09-15 16:16:28 +00:00
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium 5de9cc46b5 (svn r17531) -Fix: wrong @file for ai_basestation.hpp 2009-09-13 17:58:00 +00:00
yexo 8ef7b80719 (svn r17500) -Fix (r16502): The wrong value was restored to SetAllowDoCommand possible resulting in an AI that wasn't allowed to do any actions 2009-09-11 17:18:06 +00:00
rubidium 860a538adc (svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile) 2009-09-10 14:37:55 +00:00
rubidium f3f6eaa6dc (svn r17486) -Add [NoAI]: a vehicle list for all vehicle that are ordered to a specific depot 2009-09-09 09:46:08 +00:00
rubidium 008ffc58dd (svn r17484) -Fix: squirrel export didn't like one of the casts 2009-09-09 08:04:27 +00:00
smatz b52f692c29 (svn r17478) -Document [NoAI]: descibe changes in subsidy logic in AI changelog 2009-09-08 20:34:23 +00:00
rubidium dcd6b2096d (svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two. 2009-09-08 10:12:13 +00:00
rubidium f40885ec50 (svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7. 2009-09-07 23:30:31 +00:00
rubidium 1f21a5cb41 (svn r17446) -Codechange: rename BUILD with BUY for strings that are about building (in the future buying) vehicles. 2009-09-07 08:59:43 +00:00
rubidium 27738c6638 (svn r17414) -Codechange: only send/read the number of bits that can be actually useful when building industries 2009-09-04 20:04:54 +00:00
rubidium 2fc5458dba (svn r17411) -Codechange: silence an ICC compile warning 2009-09-03 22:56:30 +00:00
yexo 668da9e900 (svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned false for stations with OWNER_NONE 2009-09-02 20:03:56 +00:00
yexo 05433adb6d (svn r17378) -Fix [NoAI]: Several AITile::* functions didn't check whether their parameters were valid 2009-09-02 12:48:23 +00:00
rubidium 4b9b858127 (svn r17366) -Codechange: make the AI GUIs use the scrollbar wrappers 2009-09-02 07:01:25 +00:00
rubidium 4c84db1636 (svn r17345) -Fix [FS#2769]: one wasn't offered to take over bankrupt companies anymore; caused by the introduction NoAI, although NewAI had the same problem too. 2009-09-01 12:57:04 +00:00
rubidium 4abf4602e7 (svn r17344) -Codechange: splash of coding style over ai_event_types.* 2009-09-01 12:33:17 +00:00
smatz ee685c8287 (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() 2009-08-30 11:47:41 +00:00
yexo 163e741774 (svn r17307) -Fix [NoAI]: AIRail::RemoveRailTrack returned ERR_PRECONDITION_ERROR for road/rail-crossings 2009-08-29 17:01:39 +00:00
yexo f548a1b3b3 (svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first available company slot causing other AIs to be started 2009-08-28 15:23:11 +00:00
smatz 713f5d44ce (svn r17294) -Add [NoAI]: AITown::GetLastMonthTransportedPercentage and AIIndustry::GetLastMonthTransportedPercentage 2009-08-27 13:50:07 +00:00
smatz 072ce4bb17 (svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
-Change [NoAI]: mark AITown::GetMaxProduction as deprecated, AITown::GetLastMonthProduction returns now the value GetMaxProduction did
2009-08-27 13:47:03 +00:00
smatz 100ae8efcc (svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents 2009-08-27 13:31:26 +00:00
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 2009-08-23 19:03:09 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium 60a3bc9034 (svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory. 2009-08-21 20:15:17 +00:00
yexo 330c8d6a57 (svn r17237) -Update: AI changelog 2009-08-20 13:36:48 +00:00
yexo b71de3a377 (svn r17233) -Fix (r17232): typo 2009-08-20 11:02:35 +00:00
yexo 8839bdbefd (svn r17232) -Fix (r17223): Kill an AI when it tries to Sleep / execute a DoCommand during Save() instead of failing to save 2009-08-20 10:58:22 +00:00