diff --git a/Content/Levels/FactoryHall.umap b/Content/Levels/FactoryHall.umap index 87979f8..8fa056d 100644 Binary files a/Content/Levels/FactoryHall.umap and b/Content/Levels/FactoryHall.umap differ diff --git a/Content/Levels/PersistentLevel.umap b/Content/Levels/PersistentLevel.umap index 23303ec..1cc00b0 100644 Binary files a/Content/Levels/PersistentLevel.umap and b/Content/Levels/PersistentLevel.umap differ diff --git a/Content/Levels/PersistentLevel_BuiltData.uasset b/Content/Levels/PersistentLevel_BuiltData.uasset index 14fe931..25c5a7d 100644 Binary files a/Content/Levels/PersistentLevel_BuiltData.uasset and b/Content/Levels/PersistentLevel_BuiltData.uasset differ diff --git a/Content/Levels/Raum4.umap b/Content/Levels/Raum4.umap index fe3264e..5e1e65e 100644 Binary files a/Content/Levels/Raum4.umap and b/Content/Levels/Raum4.umap differ diff --git a/Content/Levels/Untitled.umap b/Content/Levels/Untitled.umap index 4ff3187..6cdaadb 100644 Binary files a/Content/Levels/Untitled.umap and b/Content/Levels/Untitled.umap differ diff --git a/Content/Levels/Untitled_BuiltData.uasset b/Content/Levels/Untitled_BuiltData.uasset index a95670c..cdd2b5e 100644 Binary files a/Content/Levels/Untitled_BuiltData.uasset and b/Content/Levels/Untitled_BuiltData.uasset differ diff --git a/Content/Levels/VillaDesign.umap b/Content/Levels/VillaDesign.umap index ce369f7..51f1159 100644 Binary files a/Content/Levels/VillaDesign.umap and b/Content/Levels/VillaDesign.umap differ diff --git a/Content/Levels/VillaDesign_BuiltData.uasset b/Content/Levels/VillaDesign_BuiltData.uasset index 7dd1be8..c7a8587 100644 Binary files a/Content/Levels/VillaDesign_BuiltData.uasset and b/Content/Levels/VillaDesign_BuiltData.uasset differ diff --git a/Content/Levels/pipeMaze.umap b/Content/Levels/pipeMaze.umap index b8fa593..8e877d8 100644 Binary files a/Content/Levels/pipeMaze.umap and b/Content/Levels/pipeMaze.umap differ diff --git a/Source/BuildingEscape/OpenDoor.cpp b/Source/BuildingEscape/OpenDoor.cpp index 90be81e..bace509 100644 --- a/Source/BuildingEscape/OpenDoor.cpp +++ b/Source/BuildingEscape/OpenDoor.cpp @@ -77,8 +77,12 @@ float UOpenDoor::TotalMass() const //Add Up Their Masses for (AActor* Actor : OverlapingActors) { - //UE_LOG(LogTemp, Display, TEXT("Actor: %s"), *Actor->GetName()); - TotalMass += Actor->FindComponentByClass()->GetMass(); + if(Actor->GetRootComponent()->Mobility == EComponentMobility::Movable) + { + //UE_LOG(LogTemp, Display, TEXT("Actor: %s"), *Actor->GetName()); + TotalMass += Actor->FindComponentByClass()->GetMass(); + } + } return TotalMass;