Skip to content

Commit

Permalink
Merge pull request #854 from WALLOFJUSTICE/dev-23-q3-2
Browse files Browse the repository at this point in the history
* fix colorblind lootbox colors
  • Loading branch information
WALLOFJUSTICE authored Oct 25, 2024
2 parents 750900f + dd560ae commit e35417f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -945,25 +945,25 @@ Sint32 itemModel(const Item* const item, bool shortModel)
if ( colorblind_lobby )
{
int playerOwner = item->getLootBagPlayer();
Uint32 index = 4;
Uint32 playerIndex = 4;
switch ( playerOwner )
{
case 0:
index = 2;
playerIndex = 2;
break;
case 1:
index = 3;
playerIndex = 3;
break;
case 2:
index = 1;
playerIndex = 1;
break;
case 3:
index = 4;
playerIndex = 4;
break;
default:
break;
}
return index + index;
return index + playerIndex;
}
else
{
Expand Down

0 comments on commit e35417f

Please sign in to comment.