From 203ae69ce6cacffaa68288db25b4cbad7accdac5 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Sun, 29 Jul 2012 23:46:16 +0000 Subject: [PATCH] Added support in MaxSpeed for an additional engine force to work while a speed increase is active. This simplifies existing code (for slipstream, nitro). Additional engine force is also added for skidding, which should make skidding more worthwhile (since usually adjusting the heading when stop skidding will use up the actual bonus speed). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11450 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 8 +++-- src/graphics/material.cpp | 11 ++++--- src/graphics/material.hpp | 6 +++- src/graphics/slip_stream.cpp | 15 +++++---- src/graphics/slip_stream.hpp | 2 +- src/items/rubber_band.cpp | 1 + src/karts/abstract_kart.hpp | 4 ++- src/karts/kart.cpp | 55 +++++++++++++++++-------------- src/karts/kart.hpp | 5 +-- src/karts/kart_properties.cpp | 6 ++-- src/karts/kart_properties.hpp | 8 ++--- src/karts/max_speed.cpp | 16 ++++++--- src/karts/max_speed.hpp | 30 ++++++++++++++--- src/karts/skidding.cpp | 18 ++++++---- src/karts/skidding.hpp | 3 +- src/karts/skidding_properties.cpp | 10 +++++- src/karts/skidding_properties.hpp | 7 ++++ src/modes/world.cpp | 8 ++--- 18 files changed, 140 insertions(+), 73 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index a5b082827..178e4432c 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -142,7 +142,7 @@ necessary. --> - -