Debug code that slipped into the previous commit

This commit is contained in:
King_DuckZ 2014-12-29 16:19:30 +01:00
parent c9381a4585
commit 3185505484
3 changed files with 0 additions and 3 deletions

View file

@ -38,7 +38,6 @@ namespace dk {
template <typename T, size_t D>
void Layer<T, D>::preload (const coords& parFrom, const coords& parTo) {
m_tiles.clear();
std::cout << "Asking to fetch from " << parFrom << " to " << parTo << "\n";
const auto area = implem::area(parTo - parFrom);
m_tiles.reserve(area);
m_tilemap.fetch(m_tiles, parFrom, parTo);

View file

@ -57,7 +57,6 @@ namespace dk {
template <typename T, std::size_t D>
void TileMapData<T, D>::fetch (std::vector<T>& parOut, const coords& parFrom, const coords& parTo) {
//TODO: implement
std::cout << "Would fetch data from " << parFrom << " to " << parTo << "\n";
const auto count = implem::area(parTo - parFrom);
std::fill_n(std::back_inserter(parOut), count, T());
}

View file

@ -48,7 +48,6 @@ namespace dk {
///--------------------------------------------------------------------------
template <size_t D>
void Tyler<D>::preload (const coords& parFrom, const coords& parTo) {
std::cout << "Looping through layers askin' for " << parFrom << " to " << parTo << "\n";
for (auto& layer : m_layers) {
layer->preload(parFrom, parTo);
}