1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Greatly simplify collision detectors

This commit is contained in:
2012-02-11 22:22:22 -05:00
parent 1b0e139ae5
commit 7dcf2e66a3
3 changed files with 51 additions and 362 deletions

View File

@ -595,10 +595,12 @@ void plSimulationMgr::AddCollisionMsg(plKey hitee, plKey hitter, bool enter)
plCollideMsg* pMsg = *it;
// Should only ever be one receiver.
// If there's more than one, you suck.
// Oh, it seems we should update the hit status. The latest might be different than the older...
// Even in the same frame >.<
if (pMsg->fOtherKey == hitter && pMsg->GetReceiver(0) == hitee)
{
DetectorLogRed("DUPE: %s hit %s",
pMsg->fEntering = enter;
DetectorLogRed("DUPLICATE COLLISION: %s hit %s",
(hitter ? hitter->GetName().c_str() : "(nil)"),
(hitee ? hitee->GetName().c_str() : "(nil)"));
return;