diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 21:11:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 21:11:12 +0000 |
commit | aba867d78dd52154bb7874a6998a3002dab57684 (patch) | |
tree | b205fc9b323290f091d73bfe7f40c7ed002d44cc /src/table | |
parent | 8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec (diff) | |
download | openttd-aba867d78dd52154bb7874a6998a3002dab57684.tar.xz |
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
Diffstat (limited to 'src/table')
0 files changed, 0 insertions, 0 deletions