Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Nov 27, 2023
1 parent f370a6f commit 8239bfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Entities/AtomGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,9 @@ namespace RTE {

// TODO: Look into breaking this into smaller methods.
bool AtomGroup::ResolveTerrainIntersection(Vector &position, unsigned char strongerThan) const {
std::list<Atom *> intersectingAtoms;
thread_local std::vector<Atom *> intersectingAtoms;
intersectingAtoms.clear();

MOID hitMaterial = g_MaterialAir;

float strengthThreshold = (strongerThan != g_MaterialAir) ? g_SceneMan.GetMaterialFromID(strongerThan)->GetIntegrity() : 0.0F;
Expand Down

0 comments on commit 8239bfa

Please sign in to comment.