diff options
author | tron <tron@openttd.org> | 2005-11-01 06:38:23 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-01 06:38:23 +0000 |
commit | f6fdb150e79692f7f5990285c760461db427f7df (patch) | |
tree | fdffdc23c332b713e94ea46b99a528d690fdbe44 /gfxinit.c | |
parent | 8ea1639603a8a8b57e9c174db29494cf8e2cbbd0 (diff) | |
download | openttd-f6fdb150e79692f7f5990285c760461db427f7df.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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |