mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
* Show sceneNum in debug message (problematic scenes can be blacklisted)
* Renamed initFunc to something more unique
This commit is contained in:
parent
646573cf70
commit
781d5f5dcb
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ void RegisterDynamicShadow() {
|
||||||
Actor* shadowActor;
|
Actor* shadowActor;
|
||||||
|
|
||||||
if ((player != nullptr) && (startMode != PLAYER_START_MODE_NOTHING)) {
|
if ((player != nullptr) && (startMode != PLAYER_START_MODE_NOTHING)) {
|
||||||
SPDLOG_DEBUG("Spawning Dynamic Shadow");
|
SPDLOG_DEBUG("Spawning Dynamic Shadow. sceneNum: {0:#x}", gPlayState->sceneNum);
|
||||||
|
|
||||||
// Spawn as Link's child so the shadow doesn't get unloaded on room change.
|
// Spawn as Link's child so the shadow doesn't get unloaded on room change.
|
||||||
shadowActor = Actor_SpawnAsChild(&gPlayState->actorCtx, &player->actor, gPlayState, ACTOR_EN_SDA, 0, 0, 0,
|
shadowActor = Actor_SpawnAsChild(&gPlayState->actorCtx, &player->actor, gPlayState, ACTOR_EN_SDA, 0, 0, 0,
|
||||||
|
@ -36,4 +36,4 @@ void RegisterDynamicShadow() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static RegisterShipInitFunc initFunc(RegisterDynamicShadow, { CVAR_DYNAMICSHADOW_NAME });
|
static RegisterShipInitFunc initFunc_DynamicShadow(RegisterDynamicShadow, { CVAR_DYNAMICSHADOW_NAME });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue