Skip to content

Commit 0b99ca2

Browse files
committed
make FindMORay only find the specific MOID
no vanilla code uses it to find child MOIDs, and i suspect no mod code does it either
1 parent f83fec1 commit 0b99ca2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Managers/SceneMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ bool SceneMan::CastFindMORay(const Vector& start, const Vector& ray, MOID target
20652065

20662066
// Detect MOIDs
20672067
hitMOID = GetMOIDPixel(intPos[X], intPos[Y], Activity::NoTeam);
2068-
if (hitMOID == targetMOID || g_MovableMan.GetRootMOID(hitMOID) == targetMOID) {
2068+
if (hitMOID == targetMOID) {
20692069
// Found target MOID, so save result and report success
20702070
resultPos.SetXY(intPos[X], intPos[Y]);
20712071
// Save last ray pos

Source/Managers/SceneMan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ namespace RTE {
693693
/// Traces along a vector and shows where a specific MOID has been found.
694694
/// @param start The starting position.
695695
/// @param ray The vector to trace along.
696-
/// @param targetMOID An MOID to find. Any child MO's of this MOID will also be found. ------------ ???
696+
/// @param targetMOID An MOID to find.
697697
/// @param resultPos A reference to the vector screen will be filled out with the absolute
698698
/// location of the found MO pixel of the above MOID.
699699
/// @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)

0 commit comments

Comments
 (0)