Commit Graph

8190 Commits

Author SHA1 Message Date
mbjornstk
680c478332 Add new demo_world.[ch]pp files to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:57:59 +00:00
mbjornstk
8813c65758 Set property to make sure EOLs are not mangled in future.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:51:12 +00:00
hikerstk
601430a066 Updated cmake config file for new files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11190 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:55 +00:00
hikerstk
c15528f903 First version of demo mode. Use --demo-mode T to start
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
hikerstk
48bac59013 Replaced simple cast with proper dynamic cast to avoid potential incorrect cast
problems (I can't figure out what this line is supposed to do ... as far as I
could see it appears not to be used at all, and m_phase never reaches FINISH_PHASE).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-06 23:54:53 +00:00
auria
70a49e4922 Check if window is larger than screen, if so switch back to 800x600
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-06 14:49:39 +00:00
auria
95a8ba37e0 Make animated textures work with LOD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-06 01:13:03 +00:00
auria
fa861267a0 Only keep the latest *approved* version of an add-on if user does not have artist debug mode enabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11185 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-05 19:44:33 +00:00
auria
157081edf2 Add fog support to water shader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-04 01:33:13 +00:00
auria
05e467fb87 Minor : Add a couple svn ignore properties
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11183 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-04 00:29:24 +00:00
hikerstk
484f0fa2d0 Fixed #626, a kart that was being affected by an explosion would get
affected again (resulting in an assertion crash).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11182 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-03 01:41:56 +00:00
wardje
8f073e66e5 Don't show end race button before the GO.
Ending before the GO gave you a time of 0:00:00.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11181 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-01 20:48:52 +00:00
wardje
49c5f1a093 Only give penalty time while in SET_PHASE as per suggestion in mailing list.
Also remove some commented out code from ages ago, as well as some random
spaces only lines.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11180 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-01 20:28:22 +00:00
hikerstk
6abcea8dfe Removed commented out code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11179 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-30 06:47:24 +00:00
hikerstk
1bd05f8707 Fixed incorrect 'release' behaviour when a cannon is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11178 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-30 06:45:58 +00:00
hikerstk
15ad3f845d Enable cannons to be used in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 23:08:50 +00:00
hikerstk
e3a1d40588 Supply special operator== and operator!= functions to avoid the
use of those functions from btQuadWord (which also test the W
component, which is for our case wrong).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11176 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 23:07:41 +00:00
auria
fcfbd4e163 Change the default screen size from 800x600 to 1024x768... everyone supports more than 800x600 nowadays and that is just too small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 13:22:41 +00:00
auria
b15d9356d8 Attempt to fix case where driving on water is possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 13:19:41 +00:00
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