Compare commits
4 Commits
a963437069
...
34039547f9
| Author | SHA1 | Date | |
|---|---|---|---|
| 34039547f9 | |||
| 284ace6683 | |||
| 3842f9b8f2 | |||
| cb029ce971 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -24,7 +24,7 @@ void UContainerInfo::InitContainerByShape(UShapeAsset* InContainerShape)
|
||||
|
||||
bool UContainerInfo::AddContainerItem(FContainerItem Item, int32& ItemID)
|
||||
{
|
||||
if (IsItemInContainerShape(Item))
|
||||
if (!IsItemInContainerShape(Item))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -98,8 +98,8 @@ bool UContainerInfo::IsItemInContainerShape(FContainerItem NewItem)
|
||||
{
|
||||
for (int y = 0; y < NewItem.GetItemHeight(); y++)
|
||||
{
|
||||
if ( (x + NewItem.ContainerStartPos.X) > 0 && (x + NewItem.ContainerStartPos.X) < ContainerShape->GetShapeWidth() &&
|
||||
(y + NewItem.ContainerStartPos.Y) > 0 && (y + NewItem.ContainerStartPos.Y) < ContainerShape->GetShapeHeight()
|
||||
if ( (x + NewItem.ContainerStartPos.X) >= 0 && (x + NewItem.ContainerStartPos.X) < ContainerShape->GetShapeWidth() &&
|
||||
(y + NewItem.ContainerStartPos.Y) >= 0 && (y + NewItem.ContainerStartPos.Y) < ContainerShape->GetShapeHeight()
|
||||
)
|
||||
{
|
||||
if (!ContainerShape->IsSlotActive(NewItem.ContainerStartPos.X + x, NewItem.ContainerStartPos.Y + y))
|
||||
|
||||
@ -86,8 +86,8 @@ public:
|
||||
break;
|
||||
case EItemDegreeType::TwentySeven:
|
||||
{
|
||||
BeforeRotationPos.X = Position.X;
|
||||
BeforeRotationPos.Y = GetItemHeight() - Position.Y- 1;
|
||||
BeforeRotationPos.X= GetItemHeight() - Position.Y - 1;
|
||||
BeforeRotationPos.Y= Position.X;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user