Fix compile after coding style
This commit is contained in:
1 parent
6487dd39b3
commit
34c249458f
1 file changed
+4
-4
@@ -24763,7 +24763,7 @@ bool Player::CanCaptureTowerPoint() const
|
||||
IsAlive()); // live player
|
||||
}
|
||||
|
||||
uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialStyle, BarberShopStyleEntry const* newSkin)
|
||||
uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 newfacialhair, BarberShopStyleEntry const* newSkin) const
|
||||
{
|
||||
uint8 level = getLevel();
|
||||
|
||||
@@ -24772,10 +24772,10 @@ uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 n
|
||||
|
||||
uint8 hairstyle = GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_STYLE_ID);
|
||||
uint8 haircolor = GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_COLOR_ID);
|
||||
uint8 facialStyle = GetByteValue(PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_FACIAL_STYLE);
|
||||
uint8 facialhair = GetByteValue(PLAYER_BYTES_2, PLAYER_BYTES_2_OFFSET_FACIAL_STYLE);
|
||||
uint8 skincolor = GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_SKIN_ID);
|
||||
|
||||
if ((hairstyle == newhairstyle) && (haircolor == newhaircolor) && (facialStyle == newfacialStyle) && (!newSkin || (newSkin->hair_id == skincolor)))
|
||||
if ((hairstyle == newhairstyle) && (haircolor == newhaircolor) && (facialhair == newfacialhair) && (!newSkin || (newSkin->hair_id == skincolor)))
|
||||
return 0;
|
||||
|
||||
GtBarberShopCostBaseEntry const* bsc = sGtBarberShopCostBaseStore.LookupEntry(level - 1);
|
||||
@@ -24791,7 +24791,7 @@ uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 n
|
||||
if ((haircolor != newhaircolor) && (hairstyle == newhairstyle))
|
||||
cost += bsc->cost * 0.5f; // +1/2 of price
|
||||
|
||||
if (facialStyle != newfacialStyle)
|
||||
if (facialhair != newfacialhair)
|
||||
cost += bsc->cost * 0.75f; // +3/4 of price
|
||||
|
||||
if (newSkin && skincolor != newSkin->hair_id)
|
||||
|
||||
Reference in new issue
Block a user