From dc878898f36473c4df54457d2738562df4dec908 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 10 Apr 2013 21:40:30 +0000 Subject: Dispensers rewritten to use ItemGrid git-svn-id: http://mc-server.googlecode.com/svn/trunk@1383 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Item.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/Item.cpp') diff --git a/source/Item.cpp b/source/Item.cpp index b96500a30..15f011c13 100644 --- a/source/Item.cpp +++ b/source/Item.cpp @@ -8,6 +8,17 @@ +cItem cItem::CopyOne(void) const +{ + cItem res(*this); + res.m_ItemCount = 1; + return res; +} + + + + + bool cItem::IsStackableWith(const cItem & a_OtherStack) { if (a_OtherStack.m_ItemType != m_ItemType) -- cgit v1.2.3