Commit Graph

579 Commits

Author SHA1 Message Date
frosch 9c75ffb8c5 (svn r18471) -Codechange/Fix: [NoAI] Deduplicate code betweeen AIVehicle::SkipToVehicleOrder and AIOrder::SkipToOrder. They are the same. Also ORDER_CURRENT was not allowed for the latter, but well... 2009-12-12 22:15:14 +00:00
smatz 784d6d836d (svn r18437) -Fix (r16557): background of disabled button in AI GUI wasn't set back to grey after AI bankrupt 2009-12-09 00:08:13 +00:00
rubidium 7d33e62d7b (svn r18436) -Fix [FS#3357]: unselect an AI in the AI Settings window when it falls out of the range of active AIs 2009-12-08 23:32:32 +00:00
rubidium 73df2c7a25 (svn r18418) -Fix [FS#3298]: under some circumstances a pointer could be left untouched and then freed. Make sure this doesn't happen by ensuring it starts out as NULL instead of 'garbage'. 2009-12-06 20:22:21 +00:00
rubidium 736e0c18cc (svn r18332) -Fix: the MSVC compile warnings 2009-11-29 01:00:03 +00:00
rubidium b00a5f1069 (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
rubidium 1f0da3710f (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 2009-11-28 15:01:49 +00:00
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium 9a87c35cd0 (svn r18299) -Update: the ai changelog document 2009-11-26 16:47:31 +00:00
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
frosch 91865c33da (svn r18276) -Fix: [NoAI] Make AIIndustryType::GetConstructionCost() return -1, if the industry is neither buildable nor prospectable. 2009-11-24 17:56:45 +00:00
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
rubidium 95436bb5b2 (svn r18248) -Codechange: remove magic numbers from the AI debug window, making it big font aware in the process 2009-11-22 22:12:00 +00:00
rubidium e4f5dddbe5 (svn r18247) -Codechange: make the AI settings window big font aware 2009-11-22 22:08:28 +00:00
rubidium 48d1718671 (svn r18239) -Codechange: make the AI 'selection' list window big font aware 2009-11-22 19:24:02 +00:00
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 2009-11-22 13:22:53 +00:00
rubidium d276acf6e7 (svn r18214) -Codechange: make the AI config window big font aware 2009-11-22 12:08:12 +00:00
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 2009-11-22 11:20:12 +00:00
rubidium 69f50570e3 (svn r18198) -Codechange: make the AI configuration window RTL aware 2009-11-20 16:01:29 +00:00
rubidium e43659440e (svn r18194) -Codechange: make the AI 'config' window RTL aware 2009-11-19 21:21:39 +00:00
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 2009-11-17 19:16:48 +00:00
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 2009-11-16 20:34:57 +00:00
peter1138 60c04c25a2 (svn r18101) -Fix (r15188): AI settings window used window-relative pixel positions 2009-11-15 17:22:47 +00:00
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 2009-11-15 10:26:01 +00:00
rubidium 860b9b1cea (svn r18028) -Codechange: unglobalise some functions 2009-11-09 10:40:33 +00:00
frosch ba1fc280e3 (svn r18005) -Codechange: Convert the Prices struct into an array and an enum. 2009-11-07 22:47:54 +00:00
frosch 79627b4f89 (svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h 2009-11-05 19:46:17 +00:00
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
frosch d01f5e9e7e (svn r17898) -Fix: [NoAI] Improve behaviour of (AIEngine|AIEventEnginePreview)::GetCargoType() and AIEngine::CanRefitCargo() wrt. articulated vehicles. 2009-10-28 20:15:46 +00:00
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