summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-21 23:13:46 +0000
committerbjarni <bjarni@openttd.org>2007-01-21 23:13:46 +0000
commit4bb18a450c6774cb240e767c1373fb87407ea8ce (patch)
tree9dbb5a8b3d76c520becd5ba462f160036611f73a /src/window.h
parentd82ae7427dfec4651ea4f17fc48a3958146c32ea (diff)
downloadopenttd-4bb18a450c6774cb240e767c1373fb87407ea8ce.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.h1
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;