File diff r8129:f8fcdf826c59 → r8130:bece2e5c7460
src/spriteloader/grf.cpp
Show inline comments
 
/* $Id$ */
 

	
 
/** @file grf.cpp */
 

	
 
#include "../stdafx.h"
 
#include "../gfx_func.h"
 
#include "../fileio.h"
 
#include "../debug.h"
 
#include "../core/alloc_func.hpp"
 
#include "grf.hpp"
 

	
 
bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, const char *filename, uint8 file_slot, uint32 file_pos)
 
{
 
	/* Open the right file and go to the correct position */
 
	FioSeekToFile(file_slot, file_pos);
 

	
 
	/* Read the size and type */
 
	int num = FioReadWord();
 
	byte type = FioReadByte();
 

	
 
	/* Type 0xFF indicates either a colormap or some other non-sprite info; we do not handle them here */