diff options
author | frosch <frosch@openttd.org> | 2018-03-11 13:21:27 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2018-03-11 13:21:27 +0000 |
commit | 07d841d0efb3fc3ed8cca1f3519c3b21bead0bb9 (patch) | |
tree | 632da54572eee03490f79358b637451e70413cb2 /src/newgrf_spritegroup.h | |
parent | d9d669dcf855e444a77141b4b96e5df1f13c7203 (diff) | |
download | openttd-07d841d0efb3fc3ed8cca1f3519c3b21bead0bb9.tar.xz |
(svn r27985) -Codechange: Convert VA2 switches into ones with non-overlapping ranges, sort them and resolve them using binary search. Speedup sprite resolving by about 7 percent.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r-- | src/newgrf_spritegroup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index 4d290b137..b2e764599 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -181,6 +181,8 @@ struct DeterministicSpriteGroup : SpriteGroup { /* Dynamically allocated, this is the sole owner */ const SpriteGroup *default_group; + const SpriteGroup *error_group; // was first range, before sorting ranges + protected: const SpriteGroup *Resolve(ResolverObject &object) const; }; |