Allow flag to be placed on driveable object (for ctf temple)

This commit is contained in:
Benau 2018-10-04 01:06:58 +08:00
parent b26d8f3454
commit 693a3bc954

View File

@ -2492,6 +2492,10 @@ Vec3 Track::flagCommand(const XMLNode *node)
} }
#endif #endif
m_track_object_manager->castRay
(loc, loc + (-10000 * quad_normal), &hit_point, &m, &normal,
/*interpolate*/false);
const std::string &name = node->getName(); const std::string &name = node->getName();
if (name == "red-flag") if (name == "red-flag")
{ {