Reversed WIP icon background patch that I accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
4263f9a373
commit
5d631158db
@ -509,15 +509,7 @@ void RaceGUI::drawGlobalPlayerIcons(const KartIconDisplayInfo* info)
|
||||
kart->getController()->isPlayerController() ? ICON_PLAYER_WIDTH
|
||||
: ICON_WIDTH;
|
||||
const core::rect<s32> pos(x, y, x+w, y+w);
|
||||
|
||||
//to bring to light the player's icon: add a background
|
||||
if (kart->getController()->isPlayerController())
|
||||
{
|
||||
video::SColor color=kart->getKartProperties()->getColor();
|
||||
color.setAlpha(100+30*cos(World::getWorld()->getTime()*2));
|
||||
irr_driver->getVideoDriver()->draw2DRectangle(color,pos);
|
||||
}
|
||||
|
||||
|
||||
// Fixes crash bug, why are certain icons not showing up?
|
||||
if ((icon != NULL) && (!kart->playingEmergencyAnimation()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user