summaryrefslogtreecommitdiff
path: root/gfxinit.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-01 06:38:23 +0000
committertron <tron@openttd.org>2005-11-01 06:38:23 +0000
commitc81119b3713f9e18697416751a955252bf6a80e5 (patch)
treefdffdc23c332b713e94ea46b99a528d690fdbe44 /gfxinit.c
parent35b8ada5f80aa603b7cc2a6a9a6ee59897aae06e (diff)
downloadopenttd-c81119b3713f9e18697416751a955252bf6a80e5.tar.xz
(svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay!
Diffstat (limited to 'gfxinit.c')
-rw-r--r--gfxinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfxinit.c b/gfxinit.c
index adfbce756..2cc573cc4 100644
--- a/gfxinit.c
+++ b/gfxinit.c
@@ -271,7 +271,7 @@ static const SpriteID trg1idx[] = {
* the old sprite-count offset from SPR_OPENTTD_BASE. With this there is no
* correspondence of any kind with the ID's in the grf file, but results in
* a maximum use of sprite slots. */
-#define OPENTTD_SPRITES_COUNT 101
+#define OPENTTD_SPRITES_COUNT 95
static const SpriteID _openttd_grf_indexes[] = {
SPR_IMG_AUTORAIL, SPR_CURSOR_WAYPOINT, // icons etc
134, 134, // euro symbol medium size
@@ -351,7 +351,7 @@ static void LoadSpriteTables(void)
assert(load_index == SPR_OPENTTD_BASE);
LoadGrfIndexed("openttd.grf", _openttd_grf_indexes, i++);
- load_index = SPR_OPENTTD_BASE + OPENTTD_SPRITES_COUNT + 1;
+ load_index = SPR_OPENTTD_BASE + OPENTTD_SPRITES_COUNT;
LoadNewGRF(load_index, i);
}