mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed the delete friend button in the friends browser #1571
This commit is contained in:
parent
6bea95dbfa
commit
fd99a6f7c9
|
@ -2100,8 +2100,7 @@ void CMenus::DoFriendListEntry(CUIRect *pView, CFriendItem *pFriend, const void
|
||||||
{
|
{
|
||||||
// delete button
|
// delete button
|
||||||
Button.Margin(1.0f, &Button);
|
Button.Margin(1.0f, &Button);
|
||||||
static int s_DeleteButton = 0;
|
if(DoButton_SpriteClean(IMAGE_FRIENDICONS, pFriend->IsClanFriend() ? SPRITE_FRIEND_X_A : SPRITE_FRIEND_X_B, &Button))
|
||||||
if(DoButton_SpriteCleanID(&s_DeleteButton, IMAGE_FRIENDICONS, pFriend->IsClanFriend() ? SPRITE_FRIEND_X_A : SPRITE_FRIEND_X_B, &Button, false))
|
|
||||||
{
|
{
|
||||||
m_pDeleteFriendInfo = pFriend->m_pFriendInfo;
|
m_pDeleteFriendInfo = pFriend->m_pFriendInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue