fix volumen physics name

This commit is contained in:
Aaron Kimbre 2022-04-17 12:46:41 -05:00
parent 23677b4bd3
commit 67615d5688

View File

@ -27,7 +27,7 @@ void WhFans::ToggleFX(Entity* self, bool hit) {
self->SetVar<bool>(u"on", false); self->SetVar<bool>(u"on", false);
for (Entity* volume : fanVolumes) { for (Entity* volume : fanVolumes) {
auto phantomPhysicsComponent = volume->GetComponent<PhantomPhysicsComponent>(); auto volumePhys = volume->GetComponent<PhantomPhysicsComponent>();
if (!volumePhys) continue; if (!volumePhys) continue;
volumePhys->SetPhysicsEffectActive(false); volumePhys->SetPhysicsEffectActive(false);
EntityManager::Instance()->SerializeEntity(volume); EntityManager::Instance()->SerializeEntity(volume);
@ -39,7 +39,7 @@ void WhFans::ToggleFX(Entity* self, bool hit) {
self->SetVar<bool>(u"on", true); self->SetVar<bool>(u"on", true);
for (Entity* volume : fanVolumes) { for (Entity* volume : fanVolumes) {
auto phantomPhysicsComponent = volume->GetComponent<PhantomPhysicsComponent>(); auto volumePhys = volume->GetComponent<PhantomPhysicsComponent>();
if (!volumePhys) continue; if (!volumePhys) continue;
volumePhys->SetPhysicsEffectActive(true); volumePhys->SetPhysicsEffectActive(true);
EntityManager::Instance()->SerializeEntity(volume); EntityManager::Instance()->SerializeEntity(volume);