Fixed few typos.

This commit is contained in:
tomrus88 2010-04-05 01:33:23 +04:00
parent 4e2c42799c
commit 05f42d995f
3 changed files with 4 additions and 4 deletions

View file

@ -11308,8 +11308,6 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
int32 randomPoints = int32(spellProto->EffectDieSides[effect_index]); int32 randomPoints = int32(spellProto->EffectDieSides[effect_index]);
float comboDamage = spellProto->EffectPointsPerComboPoint[effect_index]; float comboDamage = spellProto->EffectPointsPerComboPoint[effect_index];
int32 value = basePoints;
if(randomPoints != 0) if(randomPoints != 0)
{ {
// range can have positive and negative values, so order its for irand // range can have positive and negative values, so order its for irand
@ -11320,6 +11318,8 @@ int32 Unit::CalculateSpellDamage(SpellEntry const* spellProto, SpellEffectIndex
basePoints += randvalue; basePoints += randvalue;
} }
int32 value = basePoints;
// random damage // random damage
if(comboDamage != 0 && unitPlayer && target && (target->GetGUID() == unitPlayer->GetComboTarget())) if(comboDamage != 0 && unitPlayer && target && (target->GetGUID() == unitPlayer->GetComboTarget()))
value += (int32)(comboDamage * comboPoints); value += (int32)(comboDamage * comboPoints);

View file

@ -60,7 +60,8 @@ void BigNumber::SetQword(uint64 val)
void BigNumber::SetBinary(const uint8 *bytes, int len) void BigNumber::SetBinary(const uint8 *bytes, int len)
{ {
uint8 t[1000]; uint8 t[1000];
for (int i = 0; i < len; i++) t[i] = bytes[len - 1 - i]; for (int i = 0; i < len; i++)
t[i] = bytes[len - 1 - i];
BN_bin2bn(t, len, _bn); BN_bin2bn(t, len, _bn);
} }

View file

@ -31,7 +31,6 @@ class Sha1Hash
Sha1Hash(); Sha1Hash();
~Sha1Hash(); ~Sha1Hash();
void UpdateFinalizeBigNumbers(BigNumber *bn0, ...);
void UpdateBigNumbers(BigNumber *bn0, ...); void UpdateBigNumbers(BigNumber *bn0, ...);
void UpdateData(const uint8 *dta, int len); void UpdateData(const uint8 *dta, int len);