修改容器添加逻辑判断bug
This commit is contained in:
parent
680b6b3d87
commit
c00a1064b1
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -80,8 +80,9 @@ bool UContainerInfo::IsItemOverlapOtherItem(FContainerItem NewItem, FIntPoint Po
|
|||||||
{
|
{
|
||||||
if (NewItem.IsSlotUsing(Position))
|
if (NewItem.IsSlotUsing(Position))
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!ContainerShape->IsSlotActive(Position.X + x, Position.Y + y) ||
|
if (!ContainerShape->IsSlotActive(Position.X + x, Position.Y + y) ||
|
||||||
SlotInUsing.Find(FIntPoint(x + Position.X, y + Position.Y)))
|
SlotInUsing[FIntPoint(x + Position.X, y + Position.Y)])
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user