diff options
| author | Japa Illo | 2012-03-04 17:04:27 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-03-04 17:04:27 +0530 |
| commit | 50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd (patch) | |
| tree | 5192971d0c752fe4da7504625c001ad3d60c7b19 /Block.cpp | |
| parent | 624bef8817b277e340c2312d6d1b62cb50fcb589 (diff) | |
| download | stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.gz stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.bz2 stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.xz | |
Added support for reading and displaying creature and building inventories.
Todo: some way to use them.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Block.cpp')
| -rw-r--r-- | Block.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -33,6 +33,12 @@ void initRandomCube() randomCube[i][j][k] = rand();
}
+Worn_Item::Worn_Item()
+{
+ matt.index = -1;
+ matt.type = -1;
+}
+
Block::Block(WorldSegment* ownerSegment)
{
//clear out own memory
@@ -64,6 +70,8 @@ Block::Block(WorldSegment* ownerSegment) Block::~Block(void){
if( creature )
delete(creature);
+ if(inv)
+ delete(inv);
}
void* Block::operator new (size_t size){
|
