(svn r2105) -Codechange: Added a cache for the first vehicle of a chain to increase performance, especially with many long trains

This commit is contained in:
celestar
2005-03-29 11:19:10 +00:00
parent e39cb78b73
commit 58a72bf483
3 changed files with 27 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ struct Vehicle {
uint16 index; // NOSAVE: Index in vehicle array
Vehicle *next; // next
Vehicle *first; // NOSAVE: pointer to the first vehicle in the chain
StringID string_id; // Displayed string