Fix incorrect getChecklineTriggering on CheckCannon after using 3D check planes
This commit is contained in:
parent
a699982bfa
commit
88d8799498
@ -224,7 +224,10 @@ int CheckManager::getChecklineTriggering(const Vec3 &from,
|
|||||||
CheckStructure* c = getCheckStructure(i);
|
CheckStructure* c = getCheckStructure(i);
|
||||||
|
|
||||||
// FIXME: why is the lapline skipped?
|
// FIXME: why is the lapline skipped?
|
||||||
if (dynamic_cast<CheckLap*>(c) != NULL) continue;
|
// CheckCannon is skipped because after using 3D check planes,
|
||||||
|
// sometimes getChecklineTriggering will return true for CheckCannon
|
||||||
|
if (dynamic_cast<CheckLap*>(c) != NULL ||
|
||||||
|
dynamic_cast<CheckCannon*>(c) != NULL) continue;
|
||||||
|
|
||||||
if (c->isTriggered(from, to, -1 /* kart id */))
|
if (c->isTriggered(from, to, -1 /* kart id */))
|
||||||
return i;
|
return i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user