(svn r1343) -Fix: [Graphic] Autorail icon is now correct (Darkvater)

-Fix: [Graphic] Added resize icon (tnx tokai)
This commit is contained in:
truelight 2005-01-03 18:49:45 +00:00
parent a72d993e65
commit d382463f8a
3 changed files with 8 additions and 7 deletions

Binary file not shown.

View File

@ -215,7 +215,7 @@ static bool LoadNextSprite(int load_index, byte file_index)
_replace_sprites_offset[0]++;
_replace_sprites_count[0]--;
if ((offset + count) <= NUM_SPRITES) {
load_index = offset;
} else {
@ -743,7 +743,7 @@ static const char * const _cached_filenames[4] = {
"cached_sprites.xx3",
};
#define OPENTTD_SPRITES_COUNT 93
#define OPENTTD_SPRITES_COUNT 94
static const uint16 _openttd_grf_indexes[] = {
SPR_OPENTTD_BASE+0, SPR_OPENTTD_BASE+7, // icons etc
134, 134, // euro symbol medium size
@ -777,7 +777,7 @@ static void CheckGrfFile()
s = str_fmt("%s%s", _path.data_dir, files_dos.basic[0]);
f = fopen(s, "r");
if (f != NULL) {
if (f != NULL) {
_use_dos_palette = true;
return;
}

View File

@ -48,10 +48,11 @@ enum Sprites {
SPR_BLOT = SPR_OPENTTD_BASE + 32, // colored circle (mainly used as vehicle profit marker and for sever compatibility)
SPR_PIN_UP = SPR_OPENTTD_BASE + 62, // pin icon
SPR_PIN_UP = SPR_OPENTTD_BASE + 62, // pin icon
SPR_PIN_DOWN = SPR_OPENTTD_BASE + 63,
SPR_WINDOW_RESIZE = SPR_OPENTTD_BASE + 94, // resize icon
/* Network GUI sprites */
SPR_SQUARE = SPR_OPENTTD_BASE + 23, // colored square (used for newgrf compatibility)
SPR_LOCK = SPR_OPENTTD_BASE + 22, // lock icon (for password protected servers)
@ -62,7 +63,7 @@ enum Sprites {
/* Shadow cell */
SPR_SHADOW_CELL = 1004,
/* Sliced view shadow cells */
/* Maybe we have differen ones in the future */
SPR_MAX_SLICE = SPR_OPENTTD_BASE + 71,