Commit Graph

153 Commits (c3939135638ac957661a94300076923318192013)

Author SHA1 Message Date
frosch ee9fc4e49b (svn r14707) -Cleanup: Replace an 'int' by 'Trackdir'. 16 years ago
smatz 82ef029f41 (svn r14693) -Codechange: replace one check in old AI (probably typo, but the effect was the same) (Yexo) 16 years ago
michi_cc 9c6541c80b (svn r14504) -Cleanup: Use the right variable type for tile offsets. 16 years ago
rubidium b5e467978b (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) 16 years ago
smatz b2852f88fb (svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker) 16 years ago
rubidium e589c7e580 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
frosch e10127f032 (svn r14335) -Codechange: Remove some magic numbers. 16 years ago
belugas de43d17a82 (svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation 16 years ago
belugas 9506434539 (svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.
Provided by ln
I've added a little fix on currency.cpp too, why not :)
16 years ago
frosch c8e699cc35 (svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE. 16 years ago
rubidium 688267ad52 (svn r14062) -Fix [FS#2226]: division by 0 in newai. 16 years ago
rubidium 1ef65c329e (svn r13999) -Fix [FS#2190]: crash when the AI tries to find the depot of an airport that doesn't have a depot. 16 years ago
rubidium 4396b7c68c (svn r13809) -Fix: memory leak each time a "new ai" got (re)started. 16 years ago
rubidium cde65455ac (svn r13731) -Codechange: make a pool of the array of players. 16 years ago
rubidium 6898a76c5f (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 16 years ago
rubidium e7a501100a (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 17 years ago
rubidium d289464d69 (svn r13255) -Codechange: move _opt to _settings. 17 years ago
rubidium dc77647ea4 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
frosch 8f104a2e97 (svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
17 years ago
smatz 8841f3be40 (svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes 17 years ago
smatz 9e2490abb2 (svn r13221) -Fix (r8747): old AI failed to build oil rig routes 17 years ago
smatz baeb6e5395 (svn r13217) -Fix: old AI was building small airports in years when they were not available in original game, causing small planes and helis everywhere 17 years ago
smatz 2be223fc03 (svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits 17 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 17 years ago
peter1138 45034bc522 (svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist. 17 years ago
rubidium f4b07a78c4 (svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs). 17 years ago
rubidium ca1f8fbe2e (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 17 years ago
rubidium 6d063c3ad6 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 17 years ago
smatz ec588da9e8 (svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used 17 years ago
smatz 966e476df8 (svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile() 17 years ago
rubidium 973997e896 (svn r12617) -Codechange: add type safety to the Order's load and unload types. 17 years ago
rubidium cf250390c5 (svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness. 17 years ago
rubidium 53d101cc99 (svn r12593) -Codechange: hide Order's flags in most of the code. 17 years ago
rubidium 935b562074 (svn r12588) -Codechange: do not access the destination of an order directly. 17 years ago
rubidium a3224512cc (svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order. 17 years ago
rubidium 3b0e3d8d30 (svn r12584) -Codechange: do not access the order type directly. 17 years ago
frosch ae01e263ad (svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable. 17 years ago
frosch 15b2f07587 (svn r12533) -Cleanup: Remove some wizardry from default ai by using existings enums and helper functions. 17 years ago
rubidium df1d9bd880 (svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h. 17 years ago
rubidium c51b81c247 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h. 17 years ago
rubidium b84b16cfcd (svn r12488) -Codechange: split order.h into order_base.h and order_func.h. 17 years ago
rubidium 49a040e6ad (svn r12476) -Codechange: split type engine related types from engine.h (and openttd.h) to engine_type.h. 17 years ago
peter1138 a729283a3c (svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops 17 years ago
smatz 988b5a9111 (svn r12200) -Fix: force AI to build rail or road instead of bridges if possible, so it doesn't build bridges everywhere 17 years ago
frosch 7f3d56041b (svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus(). 17 years ago
smatz 9bdb194b2a (svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
17 years ago
frosch 1d120c51b8 (svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'. 17 years ago
smatz a53594ebd4 (svn r12184) -Fix: take into account possible loan when AI is deciding which bridge to build, so it won't build wooden bridges everytime 17 years ago
glx d7924424ac (svn r12155) -Fix (r12154): some warnings (always compile before commit) 17 years ago