mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-26 10:08:51 -05:00
Fixes glitchy dungeon maps. (#1032)
This commit is contained in:
parent
97adc4a7f2
commit
dffcbb035e
@ -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…
Reference in New Issue
Block a user