Merge branch 'sonicitems' of https://git.magicalgirl.moe/KartKrew/Kart.git into sonicitems

This commit is contained in:
toaster 2018-07-02 01:55:41 +01:00
commit bab7a8d6c1

View file

@ -3846,11 +3846,11 @@ void K_CalculateBattleWanted(void)
if (players[i].exiting) // We're done, don't calculate. if (players[i].exiting) // We're done, don't calculate.
return; return;
numingame++;
if (players[i].kartstuff[k_balloon] <= 0) // Not alive, so don't do anything else if (players[i].kartstuff[k_balloon] <= 0) // Not alive, so don't do anything else
continue; continue;
numingame++;
if (bestballoon == -1 || players[i].kartstuff[k_balloon] > bestballoon) if (bestballoon == -1 || players[i].kartstuff[k_balloon] > bestballoon)
{ {
bestballoon = players[i].kartstuff[k_balloon]; bestballoon = players[i].kartstuff[k_balloon];
@ -3897,9 +3897,9 @@ void K_CalculateBattleWanted(void)
} }
else else
{ {
// Do not add more than 2 wanted times that are tied with others. // Do not add *any* more people if there's more than 1 wanted times that are tied with others.
// This could theoretically happen very easily if people don't hit each other for a while after the start of a match. // This could theoretically happen very easily if people don't hit each other for a while after the start of a match.
// (I will be sincerely impressed if more than 2 people tie // (I will be sincerely impressed if more than 2 people tie after people start hitting each other though)
if (camppos[nextcamppos] == -1 // Out of entries if (camppos[nextcamppos] == -1 // Out of entries
|| ties >= 2) // Already counted ties || ties >= 2) // Already counted ties
@ -4962,11 +4962,11 @@ static void K_drawKartWanted(void)
} }
if (players[battlewanted[i]].skincolor == 0) if (players[battlewanted[i]].skincolor == 0)
V_DrawFixedPatch(x*scale, y*scale, scale, V_HUDTRANS|V_SNAPTORIGHT|V_SNAPTOBOTTOM, faceprefix[p->skin], NULL); V_DrawFixedPatch(x<<FRACBITS, y<<FRACBITS, scale, V_HUDTRANS|V_SNAPTORIGHT|V_SNAPTOBOTTOM, faceprefix[p->skin], NULL);
else else
{ {
colormap = R_GetTranslationColormap(TC_RAINBOW, p->skincolor, GTC_CACHE); colormap = R_GetTranslationColormap(TC_RAINBOW, p->skincolor, GTC_CACHE);
V_DrawFixedPatch(x*scale, y*scale, scale, V_HUDTRANS|V_SNAPTORIGHT|V_SNAPTOBOTTOM, faceprefix[p->skin], colormap); V_DrawFixedPatch(x<<FRACBITS, y<<FRACBITS, scale, V_HUDTRANS|V_SNAPTORIGHT|V_SNAPTOBOTTOM, faceprefix[p->skin], colormap);
} }
} }
} }