From 693a3bc954588502d7d1c4423e67eb75ff3a1027 Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 4 Oct 2018 01:06:58 +0800 Subject: [PATCH] Allow flag to be placed on driveable object (for ctf temple) --- src/tracks/track.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index fd84624ca..2e663baa7 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -2492,6 +2492,10 @@ Vec3 Track::flagCommand(const XMLNode *node) } #endif + m_track_object_manager->castRay + (loc, loc + (-10000 * quad_normal), &hit_point, &m, &normal, + /*interpolate*/false); + const std::string &name = node->getName(); if (name == "red-flag") {