From: <wel...@us...> - 2010-02-15 09:19:50
|
Revision: 5557 http://planeshift.svn.sourceforge.net/planeshift/?rev=5557&view=rev Author: weltall2 Date: 2010-02-15 09:19:44 +0000 (Mon, 15 Feb 2010) Log Message: ----------- fixed base stamina setting (-1) Modified Paths: -------------- trunk/src/server/bulkobjects/pscharacter.cpp Modified: trunk/src/server/bulkobjects/pscharacter.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharacter.cpp 2010-02-14 20:47:48 UTC (rev 5556) +++ trunk/src/server/bulkobjects/pscharacter.cpp 2010-02-15 09:19:44 UTC (rev 5557) @@ -353,8 +353,10 @@ SetHitPoints(mod < 0 ? GetMaxHP().Base() : mod); mod = row.GetFloat("mod_mana"); SetMana(mod < 0 ? GetMaxMana().Base() : mod); - SetStamina(row.GetFloat("stamina_physical"),true); - SetStamina(row.GetFloat("stamina_mental"),false); + mod = row.GetFloat("stamina_physical"); + SetStamina(mod < 0 ? GetMaxPStamina.Base() : mod,true); + mod = row.GetFloat("stamina_mental"); + SetStamina(mod < 0 ? GetMaxMStamina.Base() : mod,false); vitals->SetOrigVitals(); // This saves them as loaded state for restoring later without hitting db, npc death resurrect. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |