From: <Kha...@us...> - 2008-06-02 15:21:25
|
Revision: 1656 http://planeshift.svn.sourceforge.net/planeshift/?rev=1656&view=rev Author: Khakilord Date: 2008-06-02 08:21:27 -0700 (Mon, 02 Jun 2008) Log Message: ----------- Fixed a critical bug in undoing stats progression operations. Modified Paths: -------------- trunk/docs/history.txt trunk/src/server/progressionmanager.cpp Modified: trunk/docs/history.txt =================================================================== --- trunk/docs/history.txt 2008-06-02 04:01:35 UTC (rev 1655) +++ trunk/docs/history.txt 2008-06-02 15:21:27 UTC (rev 1656) @@ -1,3 +1,6 @@ +*** 2008-06-02 by Andrew Dai +- Fixed a critical bug in undoing stats progression operations. + *** 2008-06-01 by Mike Gist - Enabled sse and sse2 on intel macs. - Made the updater fail cleanly if there are no mirrors available when fetching Modified: trunk/src/server/progressionmanager.cpp =================================================================== --- trunk/src/server/progressionmanager.cpp 2008-06-02 04:01:35 UTC (rev 1655) +++ trunk/src/server/progressionmanager.cpp 2008-06-02 15:21:27 UTC (rev 1656) @@ -983,8 +983,8 @@ { csString script; - script.Format("<evt><%s adjust=\"add\" aim=\"target\" base=\"%s\" value=\"%f\" />", - statToString[stat], base ? "yes" : "no", oldValue - finalValue); + script.Format("<evt><%s adjust=\"add\" aim=\"%s\" base=\"%s\" value=\"%f\" />", + statToString[stat], aimIsActor ? "actor" : "target", base ? "yes" : "no", oldValue - finalValue); if (undoMsg.Length() > 0) script.AppendFmt("<msg aim=\"target\" text=\"%s\"/>", undoMsg.GetData()); script += "</evt>"; @@ -995,8 +995,8 @@ csString Absolute() { csString script; - script.Format("<%s adjust=\"add\" aim=\"target\" base=\"%s\" value=\"%f\" />", - statToString[stat], base ? "yes" : "no", newValue - oldValue); + script.Format("<%s adjust=\"add\" aim=\"%s\" base=\"%s\" value=\"%f\" />", + statToString[stat], aimIsActor ? "actor" : "target", base ? "yes" : "no", newValue - oldValue); return script; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |