@@ -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 */