From 674be5b6d002b8fa90d6340aa3ab5974cc97a16e Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 27 Jun 2013 22:25:36 +0000 Subject: [PATCH] 1) Fix #1011 by re-implementing the bubblegum not as a damping of velocity, but as a max_speed restriction. 2) Bubblegum parameters are now fully configurable in stk_config.xml. 3) Apply slowdown fraction also to speed increases (e.g. previously a max speed of 23 with a zipper giving a 15 additional speed with a slowdown of 0.3 would end up as: 23*0.3 + 15 = 21.9. Now it is (23+15)*0.3 = 11.4. While this was done mainly for bubble gums, it can affect other items as well. 4) Used bubblegum as one word consistenly in variable names and xml files. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12995 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 12 ++++++++++-- src/config/stk_config.cpp | 8 ++++---- src/config/stk_config.hpp | 2 +- src/items/item.cpp | 4 ++-- src/karts/kart.cpp | 35 ++++++++++++++++++++--------------- src/karts/kart_properties.cpp | 17 ++++++++++++++++- src/karts/kart_properties.hpp | 24 +++++++++++++++++++++++- src/karts/max_speed.cpp | 27 +++++++++++++++++++++++---- src/karts/max_speed.hpp | 8 +++++++- 9 files changed, 106 insertions(+), 31 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index 6e970a1c6..546d30252 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -114,8 +114,8 @@ nolok-bubble-gum, easter egg --> - - + + @@ -179,6 +179,14 @@ + + +