[ScryMUD] SVN Commit Info r851 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Fri Jul 28 13:30:27 PDT 2006
Author: justin
Date: 2006-07-28 13:30:26 -0700 (Fri, 28 Jul 2006)
New Revision: 851
Modified:
trunk/mud/grrmud/server/misc.cc
Log:
Changed int literal to float literal to resolve ambiguous use of std::map
Modified: trunk/mud/grrmud/server/misc.cc
===================================================================
--- trunk/mud/grrmud/server/misc.cc 2006-07-28 20:27:51 UTC (rev 850)
+++ trunk/mud/grrmud/server/misc.cc 2006-07-28 20:30:26 UTC (rev 851)
@@ -516,7 +516,7 @@
// Break even point: -220 at level 1, -800 at level 30.
int breakeven = 200 + (20 * crit_ptr->LEVEL);
// Regeneration can be up to 10x the normal rate.
- align_mod = 1/pow(10, (breakeven+crit_ptr->ALIGN)/(1000-breakeven));
+ align_mod = 1/pow(10.0f, (breakeven+crit_ptr->ALIGN)/(1000-breakeven));
}
crit_ptr->MANA += (int)(((((((float)(crit_ptr->INT)) + 5.0) / 16.0) *
More information about the ScryMUD
mailing list