- added a dirty cache flag when a unit dies

This commit is contained in:
Mark Vejvoda 2010-09-10 15:51:16 +00:00
parent 3f393fd37d
commit 793ac7a8cb
1 changed files with 6 additions and 0 deletions

View File

@ -282,6 +282,12 @@ Unit::~Unit(){
delete this->unitPath;
this->unitPath = NULL;
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
Renderer &renderer= Renderer::getInstance();
renderer.setQuadCacheDirty(true);
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
}