rubidium
eadd6765e1
(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
8342c18fb5
(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
86dac1533b
(svn r11184) -Codechange: cleanup the code related to backup orders.
17 years ago
glx
18de82b000
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
17 years ago
rubidium
bd7483ba3c
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
17 years ago
rubidium
235ad4ab6b
(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
c2dcccae16
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
17 years ago
rubidium
dc454841fd
(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
1a5b0a3417
(svn r10838) -Fix [FS#1119] (r10698): double negation where only single negation was needed. Patch by frosch.
17 years ago
rubidium
2f89fef353
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
17 years ago
rubidium
99da45988a
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
17 years ago
rubidium
2800a49f03
(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
903a0a08c2
(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
9c9fc1a79e
(svn r10672) -Codechange: typify some parameters/variables.
17 years ago
truelight
e5aca34acb
(svn r10657) -Fix r10655: commit didn't comply with coding style (tnx glx :))
17 years ago
truelight
6fe791a200
(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
fc201d4ad8
(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
0d8e82b7d7
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
18 years ago
rubidium
773a7c9cb6
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
18 years ago
rubidium
82e79b847e
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
18 years ago
rubidium
3ccc83e640
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
18 years ago
peter1138
70b6716b98
(svn r10177) -Fix: Passengers has one A and two Es (ln)
18 years ago
rubidium
06f9baac62
(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
18 years ago
rubidium
76e25154bd
(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
47d7124207
(svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart).
18 years ago
rubidium
d255041365
(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
ad747e3026
(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
3b267df0af
(svn r9954) -Fix [FS#811]: trolley AI crashed when trying to determine what the roadbits are.
18 years ago
rubidium
821e58ac95
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
18 years ago
rubidium
ef48d1012b
(svn r9912) -Fix: the AIs could build any road(station)s.
18 years ago
rubidium
51109475a2
(svn r9892) -Codechange: lots of ground work for allowing multiple types of "road" with multiple owners on a single tile.
18 years ago
belugas
c4b90f3137
(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
4500c365e1
(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
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
maedhros
3d81de8d7e
(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
43dc111833
(svn r9540) -Fix (r1): Bankrupt AIs no longer buy themselves (usage of wrong variable)
18 years ago
belugas
0a6d6eaa74
(svn r9530) -Codechange: Replace a direct industry type access by a behaviour
18 years ago
belugas
691f8578fd
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
18 years ago
celestar
045d3dc05f
(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
36cea84b11
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
18 years ago
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
tron
053e2ddda5
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
18 years ago
tron
72857162dd
(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
128caa5050
(svn r8755) -Fix
...
Abbreviate GetAirport(st->airport_type) to st->Airport()
18 years ago
KUDr
c680266b50
(svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation error under Win32. Changed to AIRPLANES
18 years ago
tron
16df378623
(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
bde06e75b4
(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
ced80aadaa
(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
e8af755d7f
(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