Minor style fixes

This commit is contained in:
Alayan-stk-2 2018-09-18 13:52:08 +02:00 committed by GitHub
parent d39b2a0620
commit 6b4ebc2148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2226,16 +2226,16 @@ void SkiddingAI::handleNitroAndZipper(float max_safe_speed)
{
if ((nitro_skill < 4) && (item_skill < 5))
{
return;
return;
}
else if (nitro_skill < 4)
{
nitro_skill = 0;
}
else if (item_skill < 5)
{
item_skill = 0;
}
else if (nitro_skill < 4)
{
nitro_skill = 0;
}
else if (item_skill < 5)
{
item_skill = 0;
}
}
// Don't use nitro or zipper if it would make the kart go too fast
@ -2307,6 +2307,10 @@ void SkiddingAI::handleNitroAndZipper(float max_safe_speed)
// The burster forces the AI to consume its reserve by series of 2 bursts
// Otherwise the bursting differences of the various nitro skill wouldn't matter here
// In short races, most AI nitro usage may be at the end with the reserve
// FIXME : if there is a lot more nitro than can be used, use it by longer/more frequent bursts
// FIXME : waiting for the end of the fade-out for the next burst is not optimal
// as the kart loses nitro top speed time reaccelerating
// FIXME : if the nitro reserve goes over 18, use as soon as practical
float burster;
if ( nitro_time > 0)