diff options
author | bjarni <bjarni@openttd.org> | 2007-01-21 23:13:46 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-01-21 23:13:46 +0000 |
commit | ade2af8ac64490359d58e6f88a7fa1e0efb36f2f (patch) | |
tree | 9dbb5a8b3d76c520becd5ba462f160036611f73a /src/window.h | |
parent | f87494587e441a21e16b99d491bc7b34a0126462 (diff) | |
download | openttd-ade2af8ac64490359d58e6f88a7fa1e0efb36f2f.tar.xz |
(svn r8333) -Codechange: when invalidating a build window list, set a flag instead of rebuilding the list and then rebuild it the next time it's redrawn
This should save CPU time in the (maybe unlikely) event that the list is invalidated more than once between two redraws
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h index 8a4eaa93e..be3edae9d 100644 --- a/src/window.h +++ b/src/window.h @@ -326,6 +326,7 @@ typedef struct { byte sel_index; // deprecated value, used for 'unified' ship and road bool descending_sort_order; byte sort_criteria; + bool regenerate_list; EngineID sel_engine; EngineID rename_engine; EngineList eng_list; |