|
|
|
|
@ -147,7 +147,7 @@ void DrawWarLord(Point position)
|
|
|
|
|
{ |
|
|
|
|
auto dunData = LoadFileInMem<uint16_t>("levels\\l4data\\warlord2.dun"); |
|
|
|
|
|
|
|
|
|
SetPiece = { position, WorldTileSize(SDL_SwapLE16(dunData[0]), SDL_SwapLE16(dunData[1])) }; |
|
|
|
|
SetPiece = { position, GetDunSize(dunData.get()) }; |
|
|
|
|
|
|
|
|
|
PlaceDunTiles(dunData.get(), position, 6); |
|
|
|
|
} |
|
|
|
|
@ -156,7 +156,7 @@ void DrawSChamber(quest_id q, Point position)
|
|
|
|
|
{ |
|
|
|
|
auto dunData = LoadFileInMem<uint16_t>("levels\\l2data\\bonestr1.dun"); |
|
|
|
|
|
|
|
|
|
SetPiece = { position, WorldTileSize(SDL_SwapLE16(dunData[0]), SDL_SwapLE16(dunData[1])) }; |
|
|
|
|
SetPiece = { position, GetDunSize(dunData.get()) }; |
|
|
|
|
|
|
|
|
|
PlaceDunTiles(dunData.get(), position, 3); |
|
|
|
|
|
|
|
|
|
@ -170,7 +170,7 @@ void DrawLTBanner(Point position)
|
|
|
|
|
int width = SDL_SwapLE16(dunData[0]); |
|
|
|
|
int height = SDL_SwapLE16(dunData[1]); |
|
|
|
|
|
|
|
|
|
SetPiece = { position, WorldTileSize(SDL_SwapLE16(dunData[0]), SDL_SwapLE16(dunData[1])) }; |
|
|
|
|
SetPiece = { position, GetDunSize(dunData.get()) }; |
|
|
|
|
|
|
|
|
|
const uint16_t *tileLayer = &dunData[2]; |
|
|
|
|
|
|
|
|
|
@ -197,7 +197,7 @@ void DrawBlood(Point position)
|
|
|
|
|
{ |
|
|
|
|
auto dunData = LoadFileInMem<uint16_t>("levels\\l2data\\blood2.dun"); |
|
|
|
|
|
|
|
|
|
SetPiece = { position, WorldTileSize(SDL_SwapLE16(dunData[0]), SDL_SwapLE16(dunData[1])) }; |
|
|
|
|
SetPiece = { position, GetDunSize(dunData.get()) }; |
|
|
|
|
|
|
|
|
|
PlaceDunTiles(dunData.get(), position, 0); |
|
|
|
|
} |
|
|
|
|
|