From: <ave...@us...> - 2009-04-05 10:05:52
|
Revision: 5853 http://gemrb.svn.sourceforge.net/gemrb/?rev=5853&view=rev Author: avenger_teambg Date: 2009-04-05 10:05:34 +0000 (Sun, 05 Apr 2009) Log Message: ----------- fixed selection of actor Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/GameControl.cpp Modified: gemrb/trunk/gemrb/plugins/Core/GameControl.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/GameControl.cpp 2009-04-05 09:43:30 UTC (rev 5852) +++ gemrb/trunk/gemrb/plugins/Core/GameControl.cpp 2009-04-05 10:05:34 UTC (rev 5853) @@ -594,11 +594,14 @@ return; } +printf("Selecting: %d\n", whom); /* doesn't fall through here */ Actor* actor = game->FindPC( whom ); if (!actor) return; +printf("It is: %s\n", actor->ShortName); + if (type==0) { game->SelectActor( actor, false, SELECT_NORMAL ); return; @@ -1621,10 +1624,7 @@ switch (type) { case ACT_NONE: //none - //clicked on a new party member - // FIXME: call GameControl::SelectActor() instead - //game->SelectActor( actor, true, SELECT_REPLACE ); - SelectActor( game->InParty(actor) ); + SelectActor( actor->InParty ); break; case ACT_TALK: //talk (first selected talks) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |