2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 12:27:43 +00:00

Minor fixes in CGameState and CScriptEffect

This commit is contained in:
2019-02-24 15:04:10 -08:00
parent d78e90f593
commit 5ebf465a53
2 changed files with 8 additions and 6 deletions

View File

@@ -163,10 +163,12 @@ void CScriptEffect::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CSt
if (playIds.size() > 0) {
TCastToConstPtr<CActor> otherAct =
mgr.GetObjectById(playIds[u32(0.99f * playIds.size() * mgr.GetActiveRandom()->Float())]);
if (otherAct)
light->SetTransform(otherAct->GetTransform());
else
light->SetTransform(GetTransform());
if (otherAct) {
if (light)
light->SetTransform(otherAct->GetTransform());
else
SetTransform(otherAct->GetTransform());
}
}
x110_24_enable = true;
if (x104_particleSystem)