File diff r7608:77bc663268b5 → r7609:2e734c4aad38
src/newgrf_spritegroup.h
Show inline comments
 
@@ -4,24 +4,24 @@
 

	
 
#ifndef NEWGRF_SPRITEGROUP_H
 
#define NEWGRF_SPRITEGROUP_H
 

	
 
#include "town.h"
 
#include "industry.h"
 
#include "newgrf_storage.h"
 

	
 
/**
 
 * Gets the value of a so-called newgrf "register".
 
 * @param i index of the register
 
 * @pre i < 0x110
 
 * @return the value of the register
 
 */
 
static inline uint32 GetRegister(uint i)
 
{
 
	assert(i < 0x110);
 
	extern uint32 _temp_store[0x110];
 
	return _temp_store[i];
 
	extern TemporaryStorageArray<uint, 0x110> _temp_store;
 
	return _temp_store.Get(i);
 
}
 

	
 
struct SpriteGroup;
 

	
 

	
 
/* 'Real' sprite groups contain a list of other result or callback sprite
 
@@ -240,10 +240,10 @@ struct ResolverObject {
 
	uint32 (*GetVariable)(const struct ResolverObject*, byte, byte, bool*);
 
	const SpriteGroup *(*ResolveReal)(const struct ResolverObject*, const SpriteGroup*);
 
};
 

	
 

	
 
/* Base sprite group resolver */
 
const SpriteGroup *Resolve(const SpriteGroup *group, ResolverObject *object, bool first_call = true);
 
const SpriteGroup *Resolve(const SpriteGroup *group, ResolverObject *object);
 

	
 

	
 
#endif /* NEWGRF_SPRITEGROUP_H */