rubidium
|
935b562074
|
(svn r12588) -Codechange: do not access the destination of an order directly.
|
2008-04-06 07:48:51 +00:00 |
|
rubidium
|
a3224512cc
|
(svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order.
|
2008-04-06 07:22:26 +00:00 |
|
rubidium
|
3b0e3d8d30
|
(svn r12584) -Codechange: do not access the order type directly.
|
2008-04-05 23:36:54 +00:00 |
|
frosch
|
ae01e263ad
|
(svn r12540) -Codechange: Enumify some values in original pathfinder and remove an unused variable.
|
2008-04-02 13:57:25 +00:00 |
|
frosch
|
15b2f07587
|
(svn r12533) -Cleanup: Remove some wizardry from default ai by using existings enums and helper functions.
|
2008-04-01 15:03:59 +00:00 |
|
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.
|
2008-03-31 00:17:39 +00:00 |
|
rubidium
|
c51b81c247
|
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
|
2008-03-31 00:06:17 +00:00 |
|
rubidium
|
b84b16cfcd
|
(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.
|
2008-03-30 23:24:18 +00:00 |
|
peter1138
|
a729283a3c
|
(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
|
2008-03-27 19:02:18 +00:00 |
|
smatz
|
988b5a9111
|
(svn r12200) -Fix: force AI to build rail or road instead of bridges if possible, so it doesn't build bridges everywhere
|
2008-02-20 17:56:36 +00:00 |
|
frosch
|
7f3d56041b
|
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
|
2008-02-20 17:49:50 +00:00 |
|
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
|
2008-02-20 17:06:58 +00:00 |
|
frosch
|
1d120c51b8
|
(svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'.
|
2008-02-20 15:13:42 +00:00 |
|
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
|
2008-02-18 22:50:58 +00:00 |
|
glx
|
d7924424ac
|
(svn r12155) -Fix (r12154): some warnings (always compile before commit)
|
2008-02-16 00:10:03 +00:00 |
|
glx
|
a148985087
|
(svn r12154) -Codechange: removed a magic number
|
2008-02-15 23:57:03 +00:00 |
|
frosch
|
514df81e27
|
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
|
2008-02-14 15:59:16 +00:00 |
|
smatz
|
fe48d0be21
|
(svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost
-Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
|
2008-02-13 19:24:40 +00:00 |
|
peter1138
|
1268a70466
|
(svn r12019) -Codechange: Add support for passenger engine designation for AI-use, NewGRF property 0x08 for trains.
|
2008-01-30 10:27:45 +00:00 |
|
smatz
|
773446df5e
|
(svn r11972) -Fix: old AI shouldn't build fast planes with a small airport in orders
|
2008-01-24 14:22:10 +00:00 |
|
smatz
|
74af65e556
|
(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead
|
2008-01-23 22:34:04 +00:00 |
|
smatz
|
881b74e882
|
(svn r11962) -Cleanup: OPF is no longer used to update signals
|
2008-01-23 17:30:28 +00:00 |
|
smatz
|
8be486c27e
|
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
|
2008-01-23 14:51:36 +00:00 |
|
peter1138
|
622f251197
|
(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.
|
2008-01-23 13:20:51 +00:00 |
|
smatz
|
66a0fafc93
|
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
|
2008-01-18 14:48:57 +00:00 |
|
rubidium
|
c141639bcc
|
(svn r11887) -Fix [FS#1658]: segmentation faults/wrong frees due uninitialized memory in the AI.
|
2008-01-17 02:09:34 +00:00 |
|
rubidium
|
736640fd87
|
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
|
2008-01-15 18:44:22 +00:00 |
|
rubidium
|
9c0c798dd8
|
(svn r11834) -Codechange: only include settings_type.h if needed.
|
2008-01-13 14:37:30 +00:00 |
|
rubidium
|
90acd52f22
|
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
|
2008-01-13 01:21:35 +00:00 |
|
rubidium
|
2fc62eab05
|
(svn r11818) -Codechange: split player.h into smaller pieces.
|
2008-01-12 14:10:35 +00:00 |
|
rubidium
|
2d2e1e3863
|
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
|
2008-01-09 21:05:03 +00:00 |
|
rubidium
|
0365c1f33b
|
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
|
2008-01-09 16:55:48 +00:00 |
|
rubidium
|
98b4fa7c07
|
(svn r11792) -Codechange: move some (virtually) globally included AI related structs to a place where they are only included a few times.
|
2008-01-09 16:40:02 +00:00 |
|
rubidium
|
722613f7f3
|
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
|
2007-12-27 13:35:39 +00:00 |
|
rubidium
|
db73addb43
|
(svn r11702) -Codechange: move all date related stuff to date*.
|
2007-12-26 13:50:40 +00:00 |
|
rubidium
|
f82aeb82c5
|
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
|
2007-12-26 11:45:43 +00:00 |
|
rubidium
|
81bf9f8503
|
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
|
2007-12-25 11:26:07 +00:00 |
|
rubidium
|
00c9d3ef20
|
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
|
2007-12-25 09:48:53 +00:00 |
|
rubidium
|
3074bca136
|
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
|
2007-12-21 22:50:51 +00:00 |
|
rubidium
|
766551b0bc
|
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
|
2007-12-21 21:50:46 +00:00 |
|
rubidium
|
be923601bf
|
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
|
2007-12-19 23:26:02 +00:00 |
|
smatz
|
926fe5c9e9
|
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
|
2007-12-16 15:38:51 +00:00 |
|
smatz
|
411dec5c3e
|
(svn r11565) -Revert: part of r11564
|
2007-12-03 22:40:18 +00:00 |
|
skidd13
|
5d74f2ced4
|
(svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style
|
2007-12-03 09:19:19 +00:00 |
|
skidd13
|
e36dba227b
|
(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
|
2007-11-25 15:35:25 +00:00 |
|
skidd13
|
815b8d8df1
|
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
|
2007-11-24 10:38:43 +00:00 |
|
skidd13
|
3ae50673a3
|
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
|
2007-11-20 13:35:54 +00:00 |
|
skidd13
|
c0a2c0c23e
|
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
|
2007-11-19 21:02:30 +00:00 |
|
rubidium
|
86dac1533b
|
(svn r11184) -Codechange: cleanup the code related to backup orders.
|
2007-09-28 21:15:45 +00:00 |
|
glx
|
18de82b000
|
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
|
2007-09-27 21:39:13 +00:00 |
|