slaw
Software Developer
I want enable cleaning in PZ. Becouse when there is map cleaning then it only delete 1/10 becouse 9/10 is in depo! So this clean make nothing! 
I have found it
need i remove something more, or
if(!tile->hasFlag(TILESTATE_PROTECTIONZONE))
is enought, and it will work propertly?
#Edit
Doesnt work becouse cleaning houses =\. Changed to TILESTATE_HOUSE, and i'll try.

I have found it
Code:
for(int32_t ly = 0; ly < FLOOR_SIZE; ++ly)
{
for(int32_t lx = 0; lx < FLOOR_SIZE; ++lx)
{
if(floor && (tile = floor->tiles[(nx + lx) & FLOOR_MASK][(ny + ly) & FLOOR_MASK]))
{
if(!tile->hasFlag(TILESTATE_PROTECTIONZONE))
{
for(uint32_t i = 0; i < tile->getThingCount(); ++i)
{
item = tile->__getThing(i)->getItem();
if(item && !item->isLoadedFromMap() && !item->isNotMoveable())
{
g_game.internalRemoveItem(item);
i--;
count++;
}
}
}
}
}
}
need i remove something more, or
if(!tile->hasFlag(TILESTATE_PROTECTIONZONE))
is enought, and it will work propertly?
#Edit
Doesnt work becouse cleaning houses =\. Changed to TILESTATE_HOUSE, and i'll try.
Last edited: