From d447d6cc67ec3b433fa678cf1666507845baf808 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Fri, 26 May 2006 18:09:58 +0000 Subject: [PATCH] o Fixed bug where the blink would go twice the speed at twice the energy cost. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@504 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.2.0/source/pm_shared/pm_shared.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/releases/3.2.0/source/pm_shared/pm_shared.cpp b/releases/3.2.0/source/pm_shared/pm_shared.cpp index 58f3595..b6fd85c 100644 --- a/releases/3.2.0/source/pm_shared/pm_shared.cpp +++ b/releases/3.2.0/source/pm_shared/pm_shared.cpp @@ -4358,19 +4358,19 @@ bool PM_BlinkMove (void) if (pmove->fuser4 != 0.0f) return false; - float theScalar = 500; + float theScalar = 225; float theEnergyCost = 0; AvHMUGetEnergyCost(AVH_WEAPON_BLINK, theEnergyCost); - if(AvHMUHasEnoughAlienEnergy(pmove->fuser3, theEnergyCost * 2)) + if(AvHMUHasEnoughAlienEnergy(pmove->fuser3, theEnergyCost)) { - AvHMUDeductAlienEnergy(pmove->fuser3, theEnergyCost * 2); + AvHMUDeductAlienEnergy(pmove->fuser3, theEnergyCost); } else return false; - pmove->fuser4 = 2 * (float)BALANCE_VAR(kBlinkROF); + pmove->fuser4 = (float)BALANCE_VAR(kBlinkROF); SetUpgradeMask(&pmove->iuser4, MASK_ALIEN_MOVEMENT, true); @@ -5435,7 +5435,7 @@ void PM_Jump (void) } // :tankefugl - // No more effect + // No more effect if ( pmove->onground == -1 ) { // Flag that we jumped.