Skip to content

Commit c220f76

Browse files
drug007eagleivg
authored andcommitted
Disable some debugging code.
because linking issue due to `CPS_Instance` belongs to `xrEngine` and is not available to `xrCDB` due to source code organization
1 parent a8a3863 commit c220f76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/xrCDB/ISpatial.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,19 @@ void ISpatial_DB::insert(ISpatial* S)
283283
xrDebug::Fatal(DEBUG_INFO, "Invalid OBJECT position or radius (%s)", O->cName().c_str());
284284
else
285285
{
286+
#ifndef LINUX
286287
CPS_Instance* P = dynamic_cast<CPS_Instance*>(S);
287288
if (P)
288289
xrDebug::Fatal(DEBUG_INFO, "Invalid PS spatial position{%3.2f,%3.2f,%3.2f} or radius{%3.2f}",
289290
VPUSH(S->GetSpatialData().sphere.P), S->GetSpatialData().sphere.R);
290291
else
291292
xrDebug::Fatal(DEBUG_INFO, "Invalid OTHER spatial position{%3.2f,%3.2f,%3.2f} or radius{%3.2f}",
292293
VPUSH(S->GetSpatialData().sphere.P), S->GetSpatialData().sphere.R);
294+
#else
295+
// In Linux there is a linking issue because `CPS_Instance` belongs to xrEngine
296+
// and is not available to xrCDB due to source code organization
297+
xrDebug::Fatal(DEBUG_INFO, "Invalid PS or other spatial position");
298+
#endif // ifndef LINUX
293299
}
294300
}
295301
#endif

0 commit comments

Comments
 (0)