Commit Graph

337 Commits (11e2ca71e67984455b3b219cdf303a2a0e8be4c0)

Author SHA1 Message Date
rubidium 11e2ca71e6 (svn r16024) -Codechange: harden string copying on places where it's possible 15 years ago
yexo 058477ed89 (svn r15910) -Fix [FS#2777]: Clarify that TILE_INVALID is part of AIMap make doxygen output some documentation for it. 15 years ago
frosch c1fec40b1a (svn r15901) -Add: AIIndustryType::IsBuiltOnWater(), HasHeliport() and HasDock(). Just like AIIndustry. 15 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
yexo 9fd6956496 (svn r15881) -Fix (r15875): add an explicit cast so some compilers stop complaining. 15 years ago
yexo a0388f85a3 (svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge that are already build. 15 years ago
frosch 779a9f4e24 (svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a certain cargo needs a bus- or a truckstop. 15 years ago
frosch 6f15901769 (svn r15859) -Documentation: Meaning of AICargo::CC_PASSENGERS wrt. bus- and truckstops, and meaning of AICargo::IsFreight() wrt. freight train weight multiplier. 15 years ago
yexo 3659cd168e (svn r15852) -Codechange: New widgets for the AI windows. 15 years ago
rubidium e1ca9bbeed (svn r15844) -Codechange: allow text alignment to be forced so the console and ai debug output don't get swapped (those are untranslateable anyways) 15 years ago
yexo 8b873859ba (svn r15835) -Codechange: Prevent using the return value of DrawString as much as possible. 15 years ago
rubidium 44e2b242cd (svn r15811) -Fix: left != right and as a result of that the ai debug window was kinda empty. 15 years ago
rubidium 0cae096d2d (svn r15806) -Codechange: pass both left and right to the vehicle details drawing functions instead of only the left. 15 years ago
rubidium dcd5ad8b19 (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. 15 years ago
frosch 25b70e8c0d (svn r15789) -Codechange: Add DiagdirBetweenTiles() and use it. 15 years ago
rubidium c1aabd9842 (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 15 years ago
yexo be3d672d3a (svn r15781) -Fix [NoAI]: Missing "AIs" in the information the debug AI prints. 15 years ago
yexo 4b8d1a58a2 (svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI. 16 years ago
frosch c297a99eff (svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and use it everywhere, so CB 36 is also used everywhere. 16 years ago
yexo cd73406b9c (svn r15743) -Codechange: move the definitions of some fake squirrel types to their own file. 16 years ago
yexo b4fb14693a (svn r15742) -Fix (r15736): AIs with an invalid info.nut weren't ignored anymore. 16 years ago
yexo d02548b204 (svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic classes ScriptScanner/ScriptFileInfo. 16 years ago
rubidium 7f468dc142 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium 51b285233f (svn r15721) -Change: give a more useful (for 'normal' users) error message when there's no AI and they want to play with an AI 16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
yexo 6fe181ae64 (svn r15716) -Change [NoAI]: AI libraries should now be stored in ai/library/<library_name>/ instead of ai/library/<category_name>/<library_name>/. Libraries inside tar files are not affected. 16 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
yexo 473cc5076a (svn r15708) -Feature [FS#2728]: Pop up the AI Debug Window if one of the AIs crashed and show a message that the user should report the crash. 16 years ago
frosch f35e00844c (svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft carries only cargo. 16 years ago
yexo 21daa3fbc9 (svn r15684) -Add [NoAI]: AIOrder::SkipToOrder(). 16 years ago
yexo 28c49b694a (svn r15668) -Fix: a few typos. 16 years ago
yexo 4a6a30cc52 (svn r15658) -Fix [NoAI]: Rewrite AIAbstractList::Valuate to make it more readable and fix a crash if no parameters are given to that function. 16 years ago
truebrain 6f9cb26000 (svn r15638) -Fix: there is a time in your life you should stop coding for a project. You know that time is there when you make two huge mistakes in just 10 lines of code. I wish you all the best of luck :) (ps: HUGE mistakes!) 16 years ago
yexo 76c0f51cf5 (svn r15630) -Fix (r15027): Make sure OpenTTD loads the dummy AI script when no other AI is available instead of a non-existing file. 16 years ago
yexo 0860685417 (svn r15616) -Change [API CHANGE]: Rename AIOrder::ChangeOrder() to AIOrder::SetOrderFlags(). 16 years ago
yexo 89fc2b2b08 (svn r15614) -Add [NoAI]: AIVehicleList_Group(group_id) and AIVehicleList_DefaultGroup(vehicle_type). 16 years ago
yexo 1362d2c16b (svn r15587) -Fix (r15345): I should really test even those simple api functions better. 16 years ago
yexo 11ce4538b4 (svn r15563) -Change [API CHANGE]: Remove AIIndustry::GetMaxIndustryID(). 16 years ago
yexo c144d8fa90 (svn r15562) -Change: Use GetName() to determine the unique AI name instead of GetInstanceName() to make branching of AIs easier. 16 years ago
yexo 301dcb6dc4 (svn r15558) -Cleanup: Remove some unnecessary friend declarations. 16 years ago
frosch abe4692da2 (svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, which cannot accept CT_INVALID.
-Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them.
-Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection.
-Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'.
  Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects.
  Note: It is intentional that you cannot control refittability by CB 36.
16 years ago
yexo 598d20eedc (svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui. 16 years ago
glx 85ea21a5d0 (svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs 16 years ago
yexo d9caae1635 (svn r15530) -Fix (r15519): The AIWaypoint classes were not exported to squirrel. 16 years ago
yexo 14f6bd6ce1 (svn r15527) -Fix (r15526): A ')' too much. 16 years ago
yexo 05856bf05f (svn r15526) -Add [NoAI]: Support for conditional orders. 16 years ago
yexo 157bf66b01 (svn r15524) -Add [NoAI]: AIEngine::GetPower, AIEngine::GetWeight and AIEngine::GetMaxTractiveEffort. 16 years ago
yexo 9a507acf37 (svn r15520) -Cleanup [NoAI]: Fix some typos, unify the comment style and update some documentation since a few enums have been renamed. 16 years ago
yexo 69df9f2787 (svn r15519) -Add [NoAI]: support for waypoints by adding AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList. 16 years ago
yexo a6350c0287 (svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in BuildRoadStation and BuildDriveThroughRoadStation. 16 years ago