Arkamarante / collision-domain

Automatically exported from code.google.com/p/collision-domain
0 stars 0 forks source link

AI player targets need updating on player quit #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The targeted player in AiPlayer.cpp may not exist if that player has quit and 
the memory freed.

This doesn't seem to have come up yet but there are crashes in AI player 
handling which may be related

Original issue reported on code.google.com by jami...@gmail.com on 27 Apr 2012 at 3:17

GoogleCodeExporter commented 8 years ago
I'll get on it after ray tracing deadline.

On 27 April 2012 16:18, <collision-domain@googlecode.com> wrote:

Original comment by david.wy...@gmail.com on 1 May 2012 at 4:02

GoogleCodeExporter commented 8 years ago
AiCore::playerQuit() should now take care of this. The SteeringBehaviour object 
of each player is exposed to the AI core now to be able to get pointers of each 
target player

Original comment by jami...@gmail.com on 9 May 2012 at 12:42