From 8cd1d43340327e94690cb13de6bb2dbef00c9ec0 Mon Sep 17 00:00:00 2001 From: Kai Rasilainen Date: Wed, 10 Mar 2010 11:59:57 +0200 Subject: [PATCH] Earth gravity added to calculations. --- Client/calculate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/calculate.cpp b/Client/calculate.cpp index 769c92a..aa579ec 100644 --- a/Client/calculate.cpp +++ b/Client/calculate.cpp @@ -64,6 +64,8 @@ void Calculate::reset() void Calculate::calculateParameters(double currentAcceleration, double seconds) { double force, power1, power2; + + currentAcceleration *= G_ACCELERATION; numOfIterations++; totalTime = (totalTime + seconds); -- 1.7.9.5