File diff r18781:e1de9a06f7cd → r18782:6453522c2154
src/tilematrix_type.hpp
Show inline comments
 
@@ -128,19 +128,19 @@ public:
 
	T *Get(TileIndex tile)
 
	{
 
		this->Add(tile);
 

	
 
		tile -= this->area.tile;
 
		uint x = TileX(tile) / N;
 
		uint y = TileY(tile) / N;
 

	
 
		return &this->data[y * this->area.w / N + x];
 
	}
 

	
 
	/** Array access operator, see #Get. */
 
	FORCEINLINE T &operator[](TileIndex tile)
 
	inline T &operator[](TileIndex tile)
 
	{
 
		return *this->Get(tile);
 
	}
 
};
 

	
 
#endif /* TILEMATRIX_TYPE_HPP */