~ubuntu-branches/ubuntu/saucy/manaplus/saucy-proposed

« back to all changes in this revision

Viewing changes to src/item.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-06-10 10:53:26 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130610105326-c3xqk5ebcgy3jxmb
Tags: 1.3.6.9-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "item.h"
24
24
 
 
25
#include "dragdrop.h"
 
26
 
25
27
#include "gui/theme.h"
26
28
 
27
29
#include "resources/image.h"
33
35
 
34
36
extern int serverVersion;
35
37
 
 
38
DragDrop dragDrop(nullptr, DRAGDROP_SOURCE_EMPTY);
 
39
 
36
40
Item::Item(const int id, const int quantity, const int refine,
37
41
           const unsigned char color, const bool equipment,
38
42
           const bool equipped):
64
68
        mDrawImage->decRef();
65
69
        mDrawImage = nullptr;
66
70
    }
 
71
    dragDrop.clearItem(this);
67
72
}
68
73
 
69
74
void Item::setId(const int id, const unsigned char color)