diff --git a/planet/Worlds.ocf/GemGrabbers.ocs/Script.c b/planet/Worlds.ocf/GemGrabbers.ocs/Script.c index 8cdbb7fd4..7dfde3c86 100644 --- a/planet/Worlds.ocf/GemGrabbers.ocs/Script.c +++ b/planet/Worlds.ocf/GemGrabbers.ocs/Script.c @@ -218,10 +218,13 @@ global func FxGrowGemStalactitesTimer(object target, proplist effect, int time) if (y <= pos.y - 5) continue; - // Check for other stalactites and crew members. - var dist = 300; + // Check for other stalactites, crew members, and vehicle material (wooden bridges, etc.). The new stalactite should not be too close to either + var dist = 300; + var vehicle_dist = 30; + if (!!FindLocation(Loc_Or(Loc_Material("Vehicle")), Loc_InRect(pos.x - vehicle_dist, pos.y - vehicle_dist, 2 * vehicle_dist, 2 * vehicle_dist))) + continue; if (!!FindLocation(Loc_Or(Loc_Material("Ruby"), Loc_Material("Amethyst")), Loc_InRect(pos.x - dist, pos.y - dist, 2 * dist, 2 * dist))) - continue; + continue; if (!!FindObject(Find_OCF(OCF_CrewMember), Find_Distance(dist, pos.x, pos.y))) continue;