Update of bug #7052 (project wormux):
Priority: 1 - Later => 5 - Normal
Assigned to: oznog => drayan
_______________________________________________________
Follow-up Comment #7:
I have tried to add the following patch to fix this leak:
Index: src/object/objects_list.cpp
===================================================================
--- src/object/objects_list.cpp (révision 2707)
+++ src/object/objects_list.cpp (copie de travail)
@@ -84,9 +84,11 @@
{
(*object)->UpdatePosition();
(*object)->Refresh();
- if((*object)->IsGhost())
+ if((*object)->IsGhost()) {
+ camera.StopFollowingObj(*object);
+ delete (*object);
object = lst_objects.erase(object);
- else
+ } else
object++;
}
}
It seems to work correctly. Unfortunately, it is not compatible with the
mechanism you have developed for the weapon projectile (ReloadLauncher() and
so on). Could you have a look ?
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?7052>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna