From: <fu...@us...> - 2009-07-02 18:25:02
|
Revision: 6678 http://gemrb.svn.sourceforge.net/gemrb/?rev=6678&view=rev Author: fuzzie Date: 2009-07-02 18:24:23 +0000 (Thu, 02 Jul 2009) Log Message: ----------- don't center on non-party actors in MoveBetweenAreasCore Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/GSUtils.cpp Modified: gemrb/trunk/gemrb/plugins/Core/GSUtils.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/GSUtils.cpp 2009-07-02 18:18:49 UTC (rev 6677) +++ gemrb/trunk/gemrb/plugins/Core/GSUtils.cpp 2009-07-02 18:24:23 UTC (rev 6678) @@ -1129,8 +1129,11 @@ if (face !=-1) { actor->SetOrientation( face, false ); } - GameControl *gc=core->GetGameControl(); - gc->SetScreenFlags(SF_CENTERONACTOR,BM_OR); + // should this perhaps be a 'selected' check or similar instead? + if (actor->InParty) { + GameControl *gc=core->GetGameControl(); + gc->SetScreenFlags(SF_CENTERONACTOR,BM_OR); + } } //repeat movement, until goal isn't reached This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |