Karts that have finished the race will now still give slipstream advantage.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-09-22 02:17:00 +00:00
parent 81aca22434
commit ea94ac5c7c

View File

@@ -919,8 +919,7 @@ float Kart::handleSlipstream(float dt)
target_kart = world->getKart(i);
// Don't test for slipstream with itself.
if(target_kart==this ||
target_kart->isEliminated() ||
target_kart->hasFinishedRace()) continue;
target_kart->isEliminated() ) continue;
// If the kart we are testing against is too slow, no need to test
// slipstreaming. Note: We compare the speed of the other kart