mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- added more debug for game end crash
This commit is contained in:
parent
175137631d
commit
f43fffc083
@ -255,6 +255,7 @@ Unit::~Unit(){
|
||||
unitParticleSystems.back()->fade();
|
||||
unitParticleSystems.pop_back();
|
||||
}
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
stopDamageParticles();
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
@ -1441,8 +1442,10 @@ CommandResult Unit::undoCommand(Command *command){
|
||||
void Unit::stopDamageParticles(){
|
||||
// stop fire
|
||||
if(fire!=NULL) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
fire->fade();
|
||||
fire= NULL;
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
}
|
||||
// stop additional particles
|
||||
while(!damageParticleSystems.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user