From c81119b3713f9e18697416751a955252bf6a80e5 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 1 Nov 2005 06:38:23 +0000 Subject: (svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay! --- gfxinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfxinit.c') 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); } -- cgit v1.2.3-70-g09d2