summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-29 20:41:28 +0000
committerbjarni <bjarni@openttd.org>2006-09-29 20:41:28 +0000
commit043f72678f451334e92667467ef28f1b61e0e87e (patch)
tree24bf8ab6f6d2bc50cb74cdbe470a510e7e6aaac1 /sound
parent7c863e67637e696d8880467920672490d41c2168 (diff)
downloadopenttd-043f72678f451334e92667467ef28f1b61e0e87e.tar.xz
(svn r6582) -Codechange: changed GenerateVehicleSortList() to reuse the same allocation over and over if possible (like BuildDepotVehicleList() )
This will prevent some reallocations when sorting vehicle list windows It also prevents moving the whole array into a new one each time the list is generated/updated (it used to make the list in one array and then move it into another one each time) Also ensured that neither GenerateVehicleSortList() or BuildDepotVehicleList() will never allocate lists longer than the total number of vehicles in the game
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions