Commit Graph

7821 Commits

Author SHA1 Message Date
hikerstk
5e9b555afe Made turning of cannon animations smoother (by using a weighted
average of previous and new heading).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 12:11:16 +00:00
wardje
78e09b4d1b Make punishment for the players less brutal, see #486.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11172 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 11:00:58 +00:00
auria
55193a0e48 Make sure the water splash particles decay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11171 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-28 21:07:51 +00:00
wardje
f426aac6cb Stop random starting of overworld after multiplayer kartselection
Since the variable m_from_overworld wasn't being initialized, its value could randomly be true.
It was also not being set when clicking multiplayer in main menu.
Making it initialize to false as well as setting it when clicking multiplayer to be on the safe side.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11170 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-27 18:09:09 +00:00
hikerstk
7d5f7e85c9 Added example of a cannon in xr591. Note that this example does
NOT allow you to finish the track properly, nor is it very smooth.
To try, rename this file to scene.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11169 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 22:55:26 +00:00
hikerstk
02dc97a021 First proper working version of cannon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 22:17:46 +00:00
wardje
a4ba8d2162 Fix #621 (trimming of spaces in name)
Entered names are trimmed before checking for duplicates and the trimmed
version is the one that gets saved.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 22:16:05 +00:00
hikerstk
803b0acfe7 1) Allowed the xyz, hpr, or scale rotation in Ipo::update to be NULL
(i.e. no update), which avoids having to pass dummy parameter
   when only XYZ is needed.
2) Added proper support for extend: 'cyclic' and 'const' now both
   can be set (other types are not supported atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 22:07:07 +00:00
hikerstk
540d29b556 Updated VS9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11165 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 21:59:16 +00:00
auria
71d4cc1d70 Minor style fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11164 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 23:52:01 +00:00
auria
c197356f86 Defer closing player name dialog to avoid potential memory corruption/crashes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11163 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 23:43:48 +00:00
mbjornstk
66da1d408b Make EOL native to be sure nobody mixes EOLs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11162 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:53:49 +00:00
auria
d6c00120f9 Use std::ostringstream to work around issues printf has with 64-bit variables
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11161 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:51:21 +00:00
auria
e9b3a36041 terrain sound is not necessarily a looping sound so check its status before setting its speed, to avoid 'ressuscitating' sounds that had already stopped
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11160 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:39:25 +00:00
undef-in-ed
9728e8514e fix format warning emitted by gcc when printing int64_t
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:29:45 +00:00
undef-in-ed
57cbf2a921 simplify PlayerProfile::generateUniqueId: modulo operation can be saved because of bitmask
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:29:23 +00:00
undef-in-ed
4fdc916f9c move non-trivial PlayerProfile methods to source file: reduce compile time when code changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11157 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 22:29:03 +00:00
auria
65629a5649 Fix driving on water in island track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 20:20:30 +00:00
auria
b71cb6067e For now make sure challenges never use reverse mode (later it may become configurable, but reusing the value left over from previous race is bad)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 19:59:25 +00:00
auria
ef750af24e challenges.xml no longer contain a player name, only a player ID, so it no more needs to be UTF-32. Back to good old ASCII :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11152 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 19:41:23 +00:00
auria
caf8083b62 Prevent sign extension when generating player ID so that the date does not become FFFFFFFF
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11151 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 19:27:53 +00:00
auria
bfd81cb56e Fix compilation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11150 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 18:55:38 +00:00
auria
6e81376db3 Add code to try to catch gettimeofday bug on linux where 0xffffffff is returned
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11149 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 18:46:31 +00:00
auria
b400320745 Make anti-aliasing level configurable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-25 15:44:17 +00:00
auria
b3f6177306 Ticket 515 : add debug code to have a better diagnostic if this happens again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-24 20:18:31 +00:00
auria
7e5f51b270 Identify players by a unique ID and no more by their name, so that when you rename a player game slots are no longer so confused. This is a somewhat painful change, please report any breakage
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-24 01:28:43 +00:00
auria
8a919816e1 Fixed returning reference to temporary
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 23:41:51 +00:00
auria
db2cd01922 Allow going to a challenge in the overworld by clicking on the minimap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 19:23:21 +00:00
wardje
a4994e7512 Fix #580 by re-exporting in GIMP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 16:37:54 +00:00
auria
13782a890e Remove useless check
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 00:59:48 +00:00
auria
099cbce6ce Improve previous fix for bug #542, this one should handle correctly when multiple gamepads are plugged
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 01:31:05 +00:00
auria
ea908cb76f Fix player parameter being NULL in input module when starting game with keyboard/mouse but playing with gamepad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11135 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 01:23:48 +00:00
auria
0f42344fc9 Make gamepad-debug a little more useful, sometimes watching the huge amount of values flash on terminal is not what you need
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:47:33 +00:00
auria
0a3e95ec12 Lower the XR591 challenge, atm it makes the track always locked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:36:42 +00:00
auria
64e1b9430b Fix fire button misbehaving when assigned to an analog key
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:30:07 +00:00
auria
ffd1432fd0 Fix gamepad navigation in menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-19 00:01:44 +00:00
auria
f65a5c3d83 While we're on the subject of Arabic, fix arabic accents
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 23:21:16 +00:00
auria
1a5593a9ba No in-game visible change, just re-export the font PNGs from gimp but setting the background color to black, so that you can see something in picasa's image viewer, who respects the background color set in the PNG :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 23:18:43 +00:00
auria
4e5c478e70 Minor tweak : reduce spinner height when height is computer from label height. Too much vertical space was waster
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 23:00:53 +00:00
auria
eacad59d20 Commit changes I forgot in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11127 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 22:59:56 +00:00
auria
e7acddc195 Improve arabic font, to a reasonable state
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11126 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 22:48:46 +00:00
hikerstk
5eafaaa918 Added support for checklines to be specified by two 3d points
instead of 2d points and the minimum height.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11125 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 22:07:45 +00:00
auria
b71a93feb9 Update layout manager to no more crash when the screen is full (which happened with Arabic, for some reason there is much empty space above and below arabic characters)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11124 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 20:49:34 +00:00
hikerstk
d0fb8aa78a A first version of the cannon that uses linear interpolation for the
bezier curves to allow smooth (i.e. constant speed) travel along
the curve.
This is WIP. Known bug: the kart jumps at the beginning and
end of the cannon animation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 13:14:18 +00:00
auria
22e0f0f9c0 Offer STK in Arabic. Note that for some reason this crashes the options menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 02:14:55 +00:00
wardje
6e06f8bd7e Fix #618, SIGABRT after 3 strikes battle.
Needed a check when destroying that the world wasn't being destroyed as well.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-16 10:50:06 +00:00
wardje
03c8fc70fd Fixed #612 - camera staying behind after falling
To fix it, I copied what happens in explosion animation: reset the camera to
normal when the animation gets removed (destroyed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-13 13:14:59 +00:00
auria
eabc8bc8af Commit betharatux1's updates to minigolf, allowing driving reverse
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-13 01:49:47 +00:00
hikerstk
a5be43ea9b Added some missing references (&) to prevent strings
from being copied.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-13 00:00:22 +00:00
hikerstk
05ada2dc13 1) Fixed #617 (double animations when kart is falling).
2) Disabled terrain particles when any kind of kart animation is
   shown (and not only when a rescue was done).
3) Minor cosmetic changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11114 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-12 23:58:35 +00:00