Commit Graph

787 Commits

Author SHA1 Message Date
rubidium cc658392eb (svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit 2010-08-19 20:45:29 +00:00
rubidium 646fbb628a (svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit 2010-08-19 20:42:00 +00:00
rubidium e89a0fb7f9 (svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit 2010-08-19 20:39:12 +00:00
yexo ca0cd109f2 (svn r20568) -Codechange: change the value of AIVehicle::VEHICLE_INVALID and use it as return value instead of ::INVALID_VEHICLE 2010-08-19 20:20:20 +00:00
yexo dc303e550b (svn r20563) -Change: [NoAI] rename AIAbstractList to AIList 2010-08-19 15:37:28 +00:00
yexo 6c7384cabd (svn r20562) -Change: [NoAI] Move all functions from AIList to AIAbstractList 2010-08-19 15:19:40 +00:00
rubidium 55c1af9fb1 (svn r20560) -Fix: AIs (still/again?) crashing for certain commands 2010-08-19 14:25:07 +00:00
yexo 16be24e13a (svn r20558) -Codechange: use one generic function to create a list of company buttons 2010-08-19 12:56:31 +00:00
yexo 381b14a1e9 (svn r20556) -Fix (r20555): a tempory copy/pasted line ended up in the commit 2010-08-19 11:36:12 +00:00
yexo 44ba57bb79 (svn r20555) -Fix [FS#4053]: wrong tooltip for the company select button in the AI debug and performance rating windows 2010-08-19 11:33:15 +00:00
yexo eeca1846d6 (svn r20534) -Codechange: unify the naming of the 'vehicle must be stopped in depot' strings 2010-08-18 00:30:12 +00:00
rubidium 9b8d7048da (svn r20533) -Codechange: shuffle a bit with the bits in the sell command 2010-08-18 00:03:08 +00:00
rubidium 4780cc50b2 (svn r20532) -Codechange: unify selling of vehicles a bit 2010-08-17 23:55:22 +00:00
frosch e77ddc5786 (svn r20523) -Fix [FS#4040]: Do not print a colon for AI settings with empty name.
Please note that this is only meant for compatiblity to make settings of 'old' AIs still look nice.
 Usage of this 'compatibility feature' is not recommended, as selected lines cannot be highlighted this way as it is done for the NewGRF settings.
2010-08-17 09:49:31 +00:00
alberth 35fec79700 (svn r20499) -Doc: Spelling fixes, and one doxygen comment addition. 2010-08-15 14:06:43 +00:00
rubidium 5933086e61 (svn r20489) -Fix [FS#4031]: [NoAI] checking whether water tiles are connected failed in some cases 2010-08-14 09:46:36 +00:00
frosch 7e5309a28a (svn r20479) -Change: Use 'Buttons Name: Value' layout for AI and NewGRF parameter GUI. 2010-08-13 07:34:28 +00:00
frosch d496ec65b9 (svn r20470) -Codechange: Make arrow buttons lower and raise like other buttons when clicked. 2010-08-12 16:44:51 +00:00
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 2010-08-12 09:16:43 +00:00
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.
2010-08-12 08:37:01 +00:00
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 2010-08-12 06:44:45 +00:00
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. 2010-08-08 10:59:30 +00:00
rubidium edbadde301 (svn r20406) -Codechange: make StationClass use the new generic class 2010-08-07 22:07:07 +00:00
rubidium 2d3ee123af (svn r20402) -Codechange: rename the airport/station class id to something slightly more generic 2010-08-07 21:10:57 +00:00
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 2010-08-07 20:51:53 +00:00
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.
2010-08-06 19:04:21 +00:00
rubidium fc39a8bec1 (svn r20348) -Fix [FS#4004]: [NoAI] Ship depots were constructed along the wrong axis 2010-08-03 16:38:15 +00:00
yexo 04a9a58ecd (svn r20346) -Change: scan for tar files before scanning for AIs/NewGRFs so new AIs/NewGRFs inside a tar file are found 2010-08-03 13:32:02 +00:00
rubidium 49cee72fa4 (svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command 2010-08-02 22:10:05 +00:00
yexo 9dbe84922b (svn r20293) -Doc: add more doxygen comments in ai_gui.cp 2010-08-01 22:08:29 +00:00
yexo 6bfe29308c (svn r20292) -Codechange: remove some unused variables from AIConfigWindow 2010-08-01 22:03:55 +00:00
yexo 7b62e4dc8e (svn r20288) -Doc: add doxygen string to all GetClassName functions (part of all AI api classes) 2010-08-01 20:41:46 +00:00
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 2010-08-01 19:44:49 +00:00
yexo 613b273f36 (svn r20285) -Codechange: use ///< for single-line doxygen comments in the AI code 2010-08-01 19:36:56 +00:00
yexo 99cb47a382 (svn r20284) -Codechange: use ///< for single-line doxygen comments in the AI code 2010-08-01 19:36:36 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
yexo 33ccd9ada8 (svn r20272) -Doc: [NoAI] document return value of AIGroup::SetAutoReplace 2010-07-31 22:46:29 +00:00
yexo 6d4900ed7c (svn r20271) -Doc: add doxygen comments to several items under src/ai/ 2010-07-31 22:16:34 +00:00
alberth a825b4fa5f (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 2010-07-29 14:26:28 +00:00
yexo 04242e19cf (svn r20238) -Doc: [NoAI] clarify the documentation for AIBaseStation::GetLocation 2010-07-29 13:08:57 +00:00
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 2010-07-26 13:08:48 +00:00
rubidium 50c7f60eca (svn r20160) -Merge: changelog updates from the 1.0 branch 2010-07-16 08:20:33 +00:00
terkhen 88830a24ec (svn r20141) -Fix: Initialize the state of OnKeyPress at the AI debug window (Zuu). 2010-07-14 12:03:30 +00:00
frosch 969c059fea (svn r20107) -Add: [NoAI] AIIndustryType::INDUSTRYTYPE_TOWN and AIIndustryType::INDUSTRYTYPE_UNKNOWN for AIRail::BuildNewGRFRailStation(). Note that BuildNewGRFRailStation() now checks the passed industry type for validity. 2010-07-10 10:54:30 +00:00
frosch cddd6df252 (svn r20103) -Fix [FS#3934]: AITown::GetRating() returned wrong values. (Morloth) 2010-07-09 19:50:06 +00:00
michi_cc 34f32cbbf4 (svn r20049) -Feature: [NewGRF] Add a railtype flag to disallow level crossings per railtype. 2010-07-02 16:34:11 +00:00
terkhen 54403a8251 (svn r19961) -Codechange: Unify "vehicle is destroyed" errors. 2010-06-11 20:20:45 +00:00
frosch e852bf154f (svn r19932) -Codechange: Preserve _current_company when starting AIs. 2010-06-05 13:29:48 +00:00
frosch 1d3adb2b66 (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 2010-06-05 12:16:12 +00:00
frosch 9db3cde73a (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 2010-05-31 20:22:57 +00:00
rubidium 6328429aac (svn r19881) -Fix [FS#3827]: pay for the rail/road when constructing tunnels and bridges 2010-05-22 14:12:48 +00:00
frosch 03cacb797a (svn r19880) -Fix: [NoAI] AIEngine::IsValidEngine() and AIEngine::IsBuildable() returned false positives. Especially wagons of unavailable railtypes were reported available. 2010-05-22 12:25:47 +00:00
rubidium 062dd0e24c (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
smatz 3f961ca671 (svn r19775) -Fix: improper use of 'then' in few comments (ln) 2010-05-09 18:13:36 +00:00
yexo 37928e29f7 (svn r19773) -Add: [NoAI] AIIndustry::GetIndustryID(TileIndex) 2010-05-09 15:59:30 +00:00
yexo 96c1fd6173 (svn r19772) -Fix [FS#3818]: the break-on-log-message feature could trigger an assert (Zuu) 2010-05-09 15:17:09 +00:00
rubidium 3461430a34 (svn r19704) -Codechange: unify the style of GSF enums; now they're plural instead of mixed 2010-04-24 11:52:58 +00:00
frosch ca9a015984 (svn r19701) -Fix [FS#3787]: Check for industry availability more thoroughly and cancel object placement when selecting not available industries. 2010-04-23 21:47:03 +00:00
frosch 893e405af0 (svn r19668) -Codechange: Use WaterClass in parameters of CMD_BUILD_CANAL. 2010-04-17 23:34:00 +00:00
frosch 0f656010c8 (svn r19637) -Codechange: Pass complete TransportType to CmdBuildTunnel. 2010-04-14 20:28:37 +00:00
frosch b858c22a7e (svn r19635) -Fix (r19634): Forgot AI. 2010-04-14 20:08:55 +00:00
smatz 0ef33548c2 (svn r19614) -Codechange: "it's" => "its" where appropriate 2010-04-12 14:12:47 +00:00
yexo 677e410b0a (svn r19595) -Doc: mention the addition of AIRail::GetMaxSpeed in the AI changelog 2010-04-09 22:29:10 +00:00
yexo a7e31778b3 (svn r19591) -Add: [NoAI] AIRail::GetMaxSpeed(RailType) to get the speed limit of railtypes 2010-04-09 12:02:50 +00:00
yexo 58fb90c5e9 (svn r19548) -Add: Client setting 'gui.ai_developer_tools' to enable the break on AI string 2010-04-03 17:22:24 +00:00
yexo d10f6e91b9 (svn r19545) -Fix (r19544): typo 2010-04-02 17:43:25 +00:00
yexo 8165737939 (svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu) 2010-04-02 17:35:20 +00:00
rubidium 69fec2d146 (svn r19531) -Merge: documentation updates from 1.0 2010-03-31 23:33:28 +00:00
rubidium f97a41040f (svn r19526) -Fix (r19395): clients would crash while connecting to a server with AIs 2010-03-30 22:37:45 +00:00
smatz 4d67c5ddaf (svn r19510) -Codechange: remove superfluous semicolons from *.sq files 2010-03-23 22:48:10 +00:00
smatz 53aaabe6e9 (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 2010-03-23 22:25:43 +00:00
alberth 05d705e077 (svn r19494) -Codechange: Remove _error_message. 2010-03-20 17:58:24 +00:00
yexo 1579e9ded2 (svn r19465) -Codechange: support for multi-tile hangars 2010-03-19 11:17:52 +00:00
yexo f2743cd5ed (svn r19464) -Codechange: move GetHangarTile to Airport 2010-03-19 09:58:46 +00:00
yexo 414071d07f (svn r19463) -Codechange: add helper function to determine if an airport has at least one hangar 2010-03-19 09:48:44 +00:00
yexo c4a88ce022 (svn r19455) -Codechange: split all airport information in Station to a seperate class 2010-03-18 21:02:20 +00:00
yexo e3591f8a1d (svn r19429) -Fix: when the title game contains an AIPL block the AI settinsg where overwritten by those from the title game 2010-03-15 22:42:43 +00:00
rubidium ede670918a (svn r19426) -Fix: compilation with AIs disabled 2010-03-15 11:45:15 +00:00
alberth 28b0a3e335 (svn r19419) -Codechange: Use failed CommandCost object to retrieve message instead of _error_message. 2010-03-14 14:36:37 +00:00
Yexo dfa528d058 (svn r19395) -Fix [FS#3669]: the AI Debug window didn't open if an AI or library fails to compile when loading a savegame 2010-03-13 00:15:24 +00:00
rubidium e3fb793a8a (svn r19388) -Fix [FS#3666]: [NoAI] When reloading a savegame, an AI failing to compile could trigger (trying) to read the not yet loaded information of another AI via the AI Debug window and its "open with the most recently used AI" feature 2010-03-11 21:55:37 +00:00
frosch f0de6366ba (svn r19368) -Codechange: Return early in AIAbstractList::SetValue(), if the value is not modified. 2010-03-07 17:38:40 +00:00
frosch 5734683a39 (svn r19367) -Fix [FS#3665]: List valuator could cause invalid iterators. 2010-03-07 17:24:07 +00:00
terkhen ef5764f98a (svn r19349) -Add: [NoAI] AIs can get the power, weight and tractive effort of a road vehicle. 2010-03-06 13:04:25 +00:00
yexo 585b036c90 (svn r19327) -Codechange: make the oilrig a part of the original airports array so some special cases can be removed 2010-03-05 23:21:51 +00:00
frosch 333249ce50 (svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead. 2010-02-28 20:25:03 +00:00
frosch ac1a08ef4a (svn r19293) -Fix [FS#3566]: Some methods of AIAbstractList left invalid iterators. 2010-02-28 19:53:11 +00:00
alberth 2ac558494c (svn r19272) -Doc: successfull -> successful. 2010-02-27 12:29:44 +00:00
smatz 1ad5e1cece (svn r19249) -Fix [FS#3642](r18803): start and end tiles were swapped in CMD_REMOVE_LONG_ROAD 2010-02-25 14:09:58 +00:00
terkhen a4a66ec1aa (svn r19231) -Feature: Allow overbuilding of road stops. 2010-02-24 21:55:03 +00:00
terkhen aba24e44cf (svn r19230) -Feature: Allow to remove multiple road stops using drag and drop. 2010-02-24 21:53:16 +00:00
terkhen 70b1bc5048 (svn r19229) -Feature: Allow to build multiple road stops using drag and drop (Based on Wolf01 work) 2010-02-24 21:51:59 +00:00
terkhen 524a10b375 (svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop. 2010-02-24 21:45:23 +00:00
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
yexo 698737f485 (svn r19198) -Codechange: store the size of stations in savegames 2010-02-22 14:17:07 +00:00
rubidium ef90fa7d02 (svn r19151) -Codechange [FS#3625]: Move home directory to a better place in Haiku (jrepan) 2010-02-17 16:45:55 +00:00
rubidium 9f27959fcd (svn r19150) -Fix (r19143): some more locations could use updating 2010-02-17 15:31:46 +00:00
rubidium 997d52fc69 (svn r19143) -Codechange: trunk's going for 1.1 now. 2010-02-16 00:07:15 +00:00