Broken RUntime
This commit is contained in:
@@ -84,13 +84,16 @@ namespace SplashEdit.RuntimeCode
|
||||
|
||||
foreach (var exporter in exporters)
|
||||
{
|
||||
// Dynamic objects are handled by the runtime collision system, skip them
|
||||
if (!exporter.StaticCollider && exporter.CollisionType != PSXCollisionType.None)
|
||||
continue;
|
||||
|
||||
PSXCollisionType effectiveType = exporter.CollisionType;
|
||||
|
||||
if (effectiveType == PSXCollisionType.None)
|
||||
{
|
||||
if (autoIncludeSolid)
|
||||
{
|
||||
// Auto-include as Solid so all geometry blocks the player
|
||||
effectiveType = PSXCollisionType.Solid;
|
||||
autoIncluded++;
|
||||
}
|
||||
@@ -146,8 +149,7 @@ namespace SplashEdit.RuntimeCode
|
||||
flags = (byte)PSXSurfaceFlag.Solid;
|
||||
|
||||
// Check if stairs (tagged on exporter or steep-ish)
|
||||
if (exporter.ObjectFlags.HasFlag(PSXObjectFlags.Static) &&
|
||||
dotUp < 0.95f && dotUp > cosWalkable)
|
||||
if (dotUp < 0.95f && dotUp > cosWalkable)
|
||||
{
|
||||
flags |= (byte)PSXSurfaceFlag.Stairs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user