Commit a83085c1 authored by Larrox's avatar Larrox

Fixed Explosions don't go through Hardrock (TnT doesn't get triggered)

parent 03d50881
......@@ -106,7 +106,7 @@ public class Explosion : MonoBehaviour
return true;
}
}
else if ((hit.distance < difference.magnitude) && difference.magnitude > 1.5 && hitObj != obj && (type == Global.Globals.BoxType.Stone || type == Global.Globals.BoxType.Metal))
else if ((hit.distance < difference.magnitude) && difference.magnitude > 1.5 && hitObj != obj && (type == Global.Globals.BoxType.Stone || type == Global.Globals.BoxType.Metal || type == Global.Globals.BoxType.HardRock))
{
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment