diff options
author | Peter Kohaut | 2016-10-09 12:03:19 +0200 |
---|---|---|
committer | Peter Kohaut | 2016-10-09 12:03:19 +0200 |
commit | f7acbcb057a2fcd455d3e163a99da9851a2e83ea (patch) | |
tree | 44fe3f37699906bc1a7805fcbaa58063729c8f9a /engines/bladerunner/item_pickup.cpp | |
parent | b5c4e09cec2a1c7280db969e4129609acf17e1c2 (diff) | |
download | scummvm-rg350-f7acbcb057a2fcd455d3e163a99da9851a2e83ea.tar.gz scummvm-rg350-f7acbcb057a2fcd455d3e163a99da9851a2e83ea.tar.bz2 scummvm-rg350-f7acbcb057a2fcd455d3e163a99da9851a2e83ea.zip |
BLADERUNNER: fixed speed of pickup effect
formating, small fixes
Diffstat (limited to 'engines/bladerunner/item_pickup.cpp')
-rw-r--r-- | engines/bladerunner/item_pickup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/item_pickup.cpp b/engines/bladerunner/item_pickup.cpp index 9792493a78..aa293c2b9b 100644 --- a/engines/bladerunner/item_pickup.cpp +++ b/engines/bladerunner/item_pickup.cpp @@ -33,7 +33,7 @@ namespace BladeRunner { ItemPickup::ItemPickup(BladeRunnerEngine *vm) { _vm = vm; - _facingStep = float(1.0f / 3000.0f * M_PI); + _facingStep = float(2.0f / 3000.0f * (2.0f * M_PI)); reset(); } @@ -95,7 +95,7 @@ void ItemPickup::tick() { _facing -= float(2.0f * M_PI); } - _animationFrame = ((int)(_animationFrame + 1)) % ((int)_vm->_sliceAnimations->getFrameCount(_animationId)); + _animationFrame = (_animationFrame + 1) % _vm->_sliceAnimations->getFrameCount(_animationId); } void ItemPickup::draw() { |