summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-14 02:29:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-14 02:29:16 +0300
commit6db83b4ee1c20162a9dd31428cbc36ce7405352d (patch)
tree502c13b828500568dbc842469ae44522a1b2ca2c /src/resources/iteminfo.h
parent4e3b36697e96e30008aea877a625d1be1e920073 (diff)
downloadplus-6db83b4ee1c20162a9dd31428cbc36ce7405352d.tar.gz
plus-6db83b4ee1c20162a9dd31428cbc36ce7405352d.tar.bz2
plus-6db83b4ee1c20162a9dd31428cbc36ce7405352d.tar.xz
plus-6db83b4ee1c20162a9dd31428cbc36ce7405352d.zip
Dont check and modify floor item position if server support haveExtendedDropsPosition.
Also add for legacy servers support for maxFloorOffsetX/Y.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 2bf4e7980..c07136581 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -219,11 +219,17 @@ class ItemInfo final
bool isRemoveSprites() const A_WARN_UNUSED
{ return mIsRemoveSprites; }
- void setMaxFloorOffset(const int i)
- { maxFloorOffset = i; }
+ void setMaxFloorOffsetX(const int i)
+ { maxFloorOffsetX = i; }
- int getMaxFloorOffset() const A_WARN_UNUSED
- { return maxFloorOffset; }
+ void setMaxFloorOffsetY(const int i)
+ { maxFloorOffsetY = i; }
+
+ int getMaxFloorOffsetX() const A_WARN_UNUSED
+ { return maxFloorOffsetX; }
+
+ int getMaxFloorOffsetY() const A_WARN_UNUSED
+ { return maxFloorOffsetY; }
bool isRemoveItemId(int id) const A_WARN_UNUSED;
@@ -360,7 +366,8 @@ class ItemInfo final
int mHitEffectId;
int mCriticalHitEffectId;
int mMissEffectId;
- int maxFloorOffset;
+ int maxFloorOffsetX;
+ int maxFloorOffsetY;
Cursor::Cursor mPickupCursor;
int mPet;
bool mProtected;