mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
HDB: Add the loadTiles() function to map-loader
This commit is contained in:
parent
79136f44d2
commit
0e58f9c9d1
@ -95,10 +95,18 @@ bool Map::load(Common::SeekableReadStream *stream) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int MapLoader::loadTiles() {
|
||||
warning("STUB: MAPLOADER: LOAD TILES");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
int Map::loadTiles() {
|
||||
|
||||
int tile, temp;
|
||||
int skyIndex = 0;
|
||||
|
||||
// Load all tiles
|
||||
for (uint j = 0; j < _height; j++) {
|
||||
for (uint i = 0; i < _width; i++) {
|
||||
tile = _background[j * _width + i];
|
||||
}
|
||||
}
|
||||
|
||||
return skyIndex;
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ public:
|
||||
Map();
|
||||
|
||||
bool load(Common::SeekableReadStream *stream);
|
||||
int loadTiles();
|
||||
|
||||
int mapX, mapY; // Coordinates of Map
|
||||
int mapTileX, mapTileY; // Tile Coordinates of Map
|
||||
|
Loading…
x
Reference in New Issue
Block a user