From 793ac7a8cbbeb6eb40d417a6f7ae56ec86b30b18 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 10 Sep 2010 15:51:16 +0000 Subject: [PATCH] - added a dirty cache flag when a unit dies --- source/glest_game/type_instances/unit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index b419ddb5..cf93a554 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -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__); }