All pastes #435557 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-12 00:04 UTC
rendered paste body
		int t;
std::vector< std::vector< Tile> > tiles;
        tiles.resize(mapwidth);
		for(int x=1; x<=mapwidth; x++) {
            tiles[x-1].resize(mapheight);
			for(int y=1; y<=mapheight; y++) {   
				BLKSTR* CurrentBlock = MapGetBlock(x-1, y-1);
				std::stringstream ss;
				ss << "x: " << x << " / y: " << y << " .. " << CurrentBlock->user1 << ":"
				          << CurrentBlock->user2 << ":"
				          << CurrentBlock->user3 << ":"
				          << CurrentBlock->user4 << ":"
				          << CurrentBlock->user5 << ":"
				          << CurrentBlock->user6 << ":"
				          << CurrentBlock->user7 << std::endl;
	          Configuration::LogEntry(ss.str());
                tiles[x-1][y-1] = Tile(SALE_TILE, SALE_TILE_COST, SALE_TILE_RENT, 0, false, true, false, "sale_tile.spr");
			}
		}