Skip to content

Feature/snooping use range#1183

Closed
raydienull wants to merge 6 commits intoSphereserver:masterfrom
raydienull:feature/snooping_use_range
Closed

Feature/snooping use range#1183
raydienull wants to merge 6 commits intoSphereserver:masterfrom
raydienull:feature/snooping_use_range

Conversation

@raydienull
Copy link
Copy Markdown
Contributor

Implement #1142

and minor code clean up of unused vars

}
}

if ( pOldCont != pItem->GetContainer() )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember adding this for a reason, does git blame help for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@xwerswoodx xwerswoodx Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check should be there, because this check if the item changed the container while dropon_item trigger checking;

I mean think like 2 players tries to get same item from the corpse or ground, and you did some checks under dropon_item, for the first player, then added the item in his container, you don't want to second player take it away from player's backpack. This check is added to block this, but it probably could be really really rare issue, as sphere can handle these checks in milliseconds, but as someone can have tons of checks under @DropOn_Item, checking if the old container is same is a guarantee. So it has to stay as it was honestly.

@Jhobean
Copy link
Copy Markdown
Contributor

Jhobean commented Dec 3, 2024

Duplication of #1338?

@raydienull raydienull closed this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants