summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-19 16:36:42 +0000
committerrubidium <rubidium@openttd.org>2007-09-19 16:36:42 +0000
commit7d325672eb35d6c658d18edb4c763a276e24954c (patch)
tree43eeb8d8df5dc2673e5adeba591247acb8e3bbe2 /src/table
parent262836a24f2f1f4a2c9c4dec4f7e0b06993839ee (diff)
downloadopenttd-7d325672eb35d6c658d18edb4c763a276e24954c.tar.xz
(svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/sprites.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h
index c285b840f..d65989fa3 100644
--- a/src/table/sprites.h
+++ b/src/table/sprites.h
@@ -176,8 +176,11 @@ enum Sprites {
/* One way road sprites */
SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + 113,
+ /* Not really a sprite, but an empty bounding box. Used to construct bounding boxes, that help sorting the sprites, but do not have a sprite associated. */
+ SPR_EMPTY_BOUNDING_BOX = SPR_ONEWAY_BASE + 6,
+
/* Flags sprites (in same order as enum NetworkLanguage) */
- SPR_FLAGS_BASE = SPR_ONEWAY_BASE + 6,
+ SPR_FLAGS_BASE = SPR_EMPTY_BOUNDING_BOX + 1,
/* Manager face sprites */
SPR_GRADIENT = 874, // background gradient behind manager face