From: <wel...@us...> - 2008-10-27 23:12:51
|
Revision: 2292 http://planeshift.svn.sourceforge.net/planeshift/?rev=2292&view=rev Author: weltall2 Date: 2008-10-27 22:21:32 +0000 (Mon, 27 Oct 2008) Log Message: ----------- Now mana isn't reset when the player dies to fix FS#2299 - Keep dying in death realm for unlimited mana patch by lanarel Modified Paths: -------------- trunk/docs/history.txt trunk/src/server/gem.cpp Modified: trunk/docs/history.txt =================================================================== --- trunk/docs/history.txt 2008-10-27 21:32:02 UTC (rev 2291) +++ trunk/docs/history.txt 2008-10-27 22:21:32 UTC (rev 2292) @@ -7,6 +7,8 @@ quest steps. - updated configure.ac to point to the forums for bug reporting, updated also the version there Fixing FS#2409 - contact email address does not seem to exist +- Now mana isn't reset when the player dies to fix + FS#2299 - Keep dying in death realm for unlimited mana patch by lanarel *** 2008-10-26 by Stefano Angeleri - some updates to pawseditor and eedit cfg files and a typo fix Modified: trunk/src/server/gem.cpp =================================================================== --- trunk/src/server/gem.cpp 2008-10-27 21:32:02 UTC (rev 2291) +++ trunk/src/server/gem.cpp 2008-10-27 22:21:32 UTC (rev 2292) @@ -1937,7 +1937,8 @@ } psChar->SetHitPoints(psChar->GetHitPointsMax()); - psChar->SetMana(psChar->GetManaMax()); + //Do not reset mana to max, to prevent exploits in DR using /die + //psChar->SetMana(psChar->GetManaMax()); psChar->SetStamina(psChar->GetStaminaMax(true), true); psChar->SetStamina(psChar->GetStaminaMax(false), false); psChar->SetHitPointsRate(HP_REGEN_RATE); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |