peter1138
1cdee354b4
(svn r12019) -Codechange: Add support for passenger engine designation for AI-use, NewGRF property 0x08 for trains.
17 years ago
frosch
6f6708e844
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
17 years ago
smatz
5f9a877376
(svn r11972) -Fix: old AI shouldn't build fast planes with a small airport in orders
17 years ago
smatz
5a7c903770
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
17 years ago
smatz
d6eaf1a11a
(svn r11962) -Cleanup: OPF is no longer used to update signals
17 years ago
smatz
0b888ccc00
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
17 years ago
peter1138
9515328962
(svn r11959) -Codechange: Use macro to loop for specific engine types instead of using specific indexes each time.
...
-Codechange: Minor scope changes in said loops.
17 years ago
smatz
a31ebdb2be
(svn r11958) -Fix (r11204): NewAI couldn't build any road vehicles when there were any tram grfs loaded
17 years ago
frosch
b99c83246b
(svn r11946) -Fix: slope detection of bridge ramps.
...
YAPF failed for steep slopes.
Trolly failed for a lot.
17 years ago
smatz
22a7b95c10
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
17 years ago
rubidium
f658b79e15
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
17 years ago
smatz
9556623281
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
17 years ago
rubidium
576f8ad93e
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
5c4150d304
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
998d7644f6
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
17 years ago
rubidium
46650c54b6
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
17 years ago
rubidium
b4337eba83
(svn r11792) -Codechange: move some (virtually) globally included AI related structs to a place where they are only included a few times.
17 years ago
rubidium
b0ac283aec
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
17 years ago
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
bf98e25e43
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
5b49e75453
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
17 years ago
smatz
93c3e0d6ad
(svn r11652) -Codechange: add the svn $ header for several files
17 years ago
smatz
145517fb8e
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
17 years ago
smatz
3cee0abdba
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
17 years ago
smatz
5acc147c1c
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
17 years ago
smatz
05fca79cf0
(svn r11565) -Revert: part of r11564
17 years ago
skidd13
82913a2134
(svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style
17 years ago
skidd13
bdc7fd2d76
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
...
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
17 years ago
skidd13
bf959f926f
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
17 years ago
skidd13
eeaa348f8b
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
rubidium
8212088c03
(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
17 years ago
rubidium
95f2181a1d
(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
17 years ago
rubidium
beeae81f60
(svn r11184) -Codechange: cleanup the code related to backup orders.
17 years ago
glx
5e45e73037
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
17 years ago
rubidium
9706c32ed6
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
17 years ago
rubidium
cb7eaff353
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
17 years ago
rubidium
a407d53d1b
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
17 years ago
rubidium
e56e520673
(svn r10942) -Fix [FS#1133]: make the AI not crash when it has ships as the AI does not support them.
17 years ago
rubidium
210ba54ff5
(svn r10838) -Fix [FS#1119] (r10698): double negation where only single negation was needed. Patch by frosch.
17 years ago
rubidium
e4149482ec
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
17 years ago
rubidium
b15c0efaa9
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
17 years ago
rubidium
7fb3f54584
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
17 years ago
rubidium
d624f66c79
(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
17 years ago
rubidium
0d9a51de6d
(svn r10672) -Codechange: typify some parameters/variables.
17 years ago
truelight
045a51ce62
(svn r10657) -Fix r10655: commit didn't comply with coding style (tnx glx :))
17 years ago
truelight
c4e47c07c9
(svn r10655) -Fix [FS#1070]: Trolly AI didn't know about steep slopes, and used wrong tileh in some cases (frosch)
17 years ago
rubidium
e5c352818d
(svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
18 years ago
rubidium
f806b46cc9
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
18 years ago
rubidium
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
18 years ago
rubidium
b09431478d
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
18 years ago
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
18 years ago
peter1138
94bd08fc17
(svn r10177) -Fix: Passengers has one A and two Es (ln)
18 years ago
rubidium
01593bdb6a
(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
18 years ago
rubidium
cc4d18ecc4
(svn r10098) -Codechange: bilbo cared about the performance of the AI with respect to the airport placement, so he rewrote the aircraft handling of the AI; now it can actually make lots of money again :)
18 years ago
rubidium
7767e466e5
(svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart).
18 years ago
rubidium
8a74b2ebe1
(svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month).
18 years ago
rubidium
c4806955e5
(svn r10033) -Feature [FS#760]: skip to the selected order in the order list when clicking on the "skip" button while pressing CTRL.
18 years ago
rubidium
53380fc047
(svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are.
18 years ago
rubidium
440d723d84
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
18 years ago
rubidium
3d143446ee
(svn r9912) -Fix: the AIs could build any road(station)s.
18 years ago
rubidium
d86b5e5e93
(svn r9892) -Codechange: lots of ground work for allowing multiple types of "road" with multiple owners on a single tile.
18 years ago
belugas
380d18fb69
(svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead.
18 years ago
rubidium
f24f9d5a2e
(svn r9817) -Fix [FS#772]: an assertion that was triggered by the AI building when its rating for the town was not high enough.
18 years ago
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
maedhros
ccaaa7d33a
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
18 years ago
celestar
e3f1914de0
(svn r9540) -Fix (r1): Bankrupt AIs no longer buy themselves (usage of wrong variable)
18 years ago
belugas
377fbf9eb7
(svn r9530) -Codechange: Replace a direct industry type access by a behaviour
18 years ago
belugas
06d3669bb5
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
celestar
124725d863
(svn r9251) -Fix(r6057, FS#644): Use a less CPU-intensive algorithm to find a random industry for the AI to prevent it slowing down the game. The AI now sucks a even a bit more than before (if that's even possible).
18 years ago
rubidium
ce919e8c71
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
18 years ago
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
tron
103d119c51
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
18 years ago
tron
8aacd2585d
(svn r8767) -Fix
...
-Codechange: Do not hardcode the catchment radius of airports, but hold the information in AirportFTAClass
-Fix (r979): The default AI tested possible airport locations with a fixed catchment radius instead of the radius of the to be built airport
18 years ago
tron
87e03c7aa8
(svn r8755) -Fix
...
Abbreviate GetAirport(st->airport_type) to st->Airport()
18 years ago
KUDr
72cdfb6352
(svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation error under Win32. Changed to AIRPLANES
18 years ago
tron
5231f5669d
(svn r8747) -Fix
...
-Codechange: Make the encoding of accepted aircraft types of airports a bit more sensible and move the enum into struct AirportFTAClass
18 years ago
celestar
59a814c6d3
(svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts.
18 years ago
tron
356e47f108
(svn r8660) -Fix
...
-Codechange: Remove _avail_aircraft
Its name is misleading. It is rather _avail_airports, but then only some of them, which leads to inconsistencies when using it.
Further it is unnecessary to store it in savegams.
18 years ago
belugas
0c45071bb0
(svn r8455) -Codechange: Give a more meaningful name (railveh_type)to member flags of RailVehInfo, as well as changing the code to reflect the fact that it was not a flag but rather a one value only variable. Doing so, some evaluations have been simplified.
...
-Codechange: Add and use RAILVEH_SINGLEHEAD when railveh_type is set to 0, which was implicit before.
-Cleanup: Remove some extraneous parenthesis.
18 years ago
Darkvater
50ca901b40
(svn r8428) -Codechange: Add proper names to aircraft subtypes instead of magic numbers and add a function IsNormalAircraft() which tells us whether the aircraft is in fact some flying device or a rotor/shadow.
18 years ago
celestar
b0a0086e7c
(svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
18 years ago
tron
0996de79df
(svn r8385) -Fix
...
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
18 years ago
tron
b2def96248
(svn r8276) -Fix
...
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
18 years ago
tron
b9832e10bd
(svn r8116) Undo r8113
18 years ago
tron
7eca68cfe9
(svn r8113) Fix the #include path to table/strings.h
18 years ago
KUDr
33be1ecfb1
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
18 years ago
celestar
1691b2da61
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago