File diff r17768:a8b4e13e2113 → r17769:40a7de7cde1c
src/newgrf_spritegroup.h
Show inline comments
 
@@ -29,24 +29,24 @@
 
 * @pre i < 0x110
 
 * @return the value of the register
 
 */
 
static inline uint32 GetRegister(uint i)
 
{
 
	extern TemporaryStorageArray<int32, 0x110> _temp_store;
 
	return _temp_store.Get(i);
 
	return _temp_store.GetValue(i);
 
}
 

	
 
/**
 
 * Clears the value of a so-called newgrf "register".
 
 * @param i index of the register
 
 * @pre i < 0x110
 
 */
 
static inline void ClearRegister(uint i)
 
{
 
	extern TemporaryStorageArray<int32, 0x110> _temp_store;
 
	_temp_store.Store(i, 0);
 
	_temp_store.StoreValue(i, 0);
 
}
 

	
 
/* List of different sprite group types */
 
enum SpriteGroupType {
 
	SGT_REAL,
 
	SGT_DETERMINISTIC,