From 4f2fe6174dbcf6b55569e9330680c925476c6c5e Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 30 Sep 2019 02:07:53 +0200 Subject: [PATCH] GetDamageAmt cleanup --- Source/missiles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 6d7528e8d..f3b9ef3a3 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -28,7 +28,7 @@ void GetDamageAmt(int i, int *mind, int *maxd) case SPL_HEAL: /// BUGFIX: healing calculation is unused *mind = plr[myplr]._pLevel + sl + 1; if (plr[myplr]._pClass == PC_WARRIOR) { - *mind *= 2; + *mind <<= 1; } if (plr[myplr]._pClass == PC_ROGUE) { *mind += *mind >> 1; @@ -41,7 +41,7 @@ void GetDamageAmt(int i, int *mind, int *maxd) *maxd += 6; } if (plr[myplr]._pClass == PC_WARRIOR) { - *maxd *= 2; + *maxd <<= 1; } if (plr[myplr]._pClass == PC_ROGUE) { *maxd += *maxd >> 1; @@ -168,7 +168,7 @@ void GetDamageAmt(int i, int *mind, int *maxd) case SPL_HEALOTHER: /// BUGFIX: healing calculation is unused *mind = plr[myplr]._pLevel + sl + 1; if (plr[myplr]._pClass == PC_WARRIOR) { - *mind *= 2; + *mind <<= 1; } if (plr[myplr]._pClass == PC_ROGUE) { *mind += *mind >> 1; @@ -181,7 +181,7 @@ void GetDamageAmt(int i, int *mind, int *maxd) *maxd += 6; } if (plr[myplr]._pClass == PC_WARRIOR) { - *maxd *= 2; + *maxd <<= 1; } if (plr[myplr]._pClass == PC_ROGUE) { *maxd += *maxd >> 1;