From: <ac...@us...> - 2007-11-02 22:23:59
|
Revision: 159 http://planeshift.svn.sourceforge.net/planeshift/?rev=159&view=rev Author: acraig Date: 2007-11-02 15:24:01 -0700 (Fri, 02 Nov 2007) Log Message: ----------- Fix for FS415: Mouserun doesn't work when target selected Modified Paths: -------------- trunk/docs/history.txt trunk/src/client/psmovement.cpp Modified: trunk/docs/history.txt =================================================================== --- trunk/docs/history.txt 2007-11-02 22:18:17 UTC (rev 158) +++ trunk/docs/history.txt 2007-11-02 22:24:01 UTC (rev 159) @@ -1,5 +1,6 @@ *** 2007-11-02 by Andrew Craig - Patch from Roland to fix FS#530 Ctrl+LeftClick combo does not work +- Patch from Roladn to fix FS#415: Mouserun doesn't work when target selected *** 2007-11-02 by Sasha Levin - Committed Lanarels' fix for FS#545. Modified: trunk/src/client/psmovement.cpp =================================================================== --- trunk/src/client/psmovement.cpp 2007-11-02 22:18:17 UTC (rev 158) +++ trunk/src/client/psmovement.cpp 2007-11-02 22:24:01 UTC (rev 159) @@ -722,8 +722,8 @@ linearMove->GetLastPosition(currPos, yRot, sector); csVector3 diff = runToDiff - currPos; - // only move the char if we are not stuck and we're not targeting anyone - if (!psengine->GetCharManager()->GetTarget() && diff.SquaredNorm() > RUNTO_EPSILON*RUNTO_EPSILON) + // only move the char if we are not stuck + if (diff.SquaredNorm() > RUNTO_EPSILON*RUNTO_EPSILON) { float targetYRot = atan2(-diff.x,-diff.z); lastDist = diff.SquaredNorm(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |