mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-15 09:33:00 -07:00
Fixes glitchy dungeon maps. (#1032)
This commit is contained in:
parent
97adc4a7f2
commit
dffcbb035e
1 changed files with 1 additions and 2 deletions
|
@ -3227,10 +3227,9 @@ void KaleidoScope_LoadDungeonMap(GlobalContext* globalCtx) {
|
|||
|
||||
char* firstTextureName = sDungeonMapTexs[R_MAP_TEX_INDEX];
|
||||
char* secondTextureName = sDungeonMapTexs[R_MAP_TEX_INDEX + 1];
|
||||
uint32_t firstTextureSize = ResourceMgr_LoadTexSizeByName(firstTextureName);
|
||||
|
||||
memcpy(interfaceCtx->mapSegment, ResourceMgr_LoadTexByName(firstTextureName), ResourceMgr_LoadTexSizeByName(firstTextureName));
|
||||
memcpy(interfaceCtx->mapSegment + (firstTextureSize / 2), ResourceMgr_LoadTexByName(secondTextureName), ResourceMgr_LoadTexSizeByName(secondTextureName));
|
||||
memcpy(interfaceCtx->mapSegment + 0x800, ResourceMgr_LoadTexByName(secondTextureName), ResourceMgr_LoadTexSizeByName(secondTextureName));
|
||||
}
|
||||
|
||||
void KaleidoScope_UpdateDungeonMap(GlobalContext* globalCtx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue