Commit Graph

2368 Commits

Author SHA1 Message Date
davemk
b35ec4b31f separate zipper velocity change from suspension/turning impulses
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 07:19:14 +00:00
davemk
284599bb38 cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 06:55:44 +00:00
hikerstk
85324a7685 Fixed several memory leaks. Now the karts displayed in the kart
selection screen after a race was finished should be 'clean' (though
a 2nd race might still not work at this stage).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 00:24:47 +00:00
hikerstk
ce4d1b8000 Fixed VS compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-17 00:19:55 +00:00
auria
91c04d564f Improved music credit text displayed at the beginning of a race so it's not confused with track author
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 22:52:41 +00:00
auria
a2e93a9b2c Don't show music desc when music is off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 20:55:06 +00:00
auria
b7c8b77952 Improved input handling with modal dialogs & text boxes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:36:52 +00:00
auria
600ac7ebf5 Fixed backspace in new player dialog dismissing the dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:25:15 +00:00
auria
f3e1dc0550 Hopefully fixed rescue-under-track issue by raising drivelines
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-15 17:58:55 +00:00
rforder
5b62ac9a59 Fixed ActivePlayer::getKart to actually return the correct kart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 20:16:34 +00:00
rforder
47cfe64301 More cleanup. Replaced StateManager::addActivePlayer(PlayerProfile *) with StateManager::createActivePlayer(PlayerProfile *, InputDevice *) . This will ensure that in the future no active players will accidentally be added without an associated device and also removes some redundant code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:36:47 +00:00
rforder
8b3b8e3d28 Fix for no keyboard support when using --no-start-screen switch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:05:52 +00:00
hikerstk
405ee12ca5 Fixed various memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 23:26:38 +00:00
rforder
7a84273ec5 Cleaning up kart selection. Assigns karts correctly in multiplayer. included some null pointer and bounds checks that were causing some
crashes, etc.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 22:53:24 +00:00
rforder
3119dec5c2 temporary work around for multiplayer kart selection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 21:58:55 +00:00
rforder
808aa8bfea More cleanup in the kart selection gui & input code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3854 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 18:39:18 +00:00
rforder
7db3295936 Moved various function calls involved in the initialization of the kart selection screen from different places in the code into the "init"
section of the kart selection call back.  This will prevent some problems that were occuring when returning to the kart select screen 
from the track select screen (and it just makes more sense to find them there).  Renamed playerPressedRescue and firePressedOnNewDevice 
to playerQuit and playerJoin respectively, to more accurately describe the behavior of the functions.  Removed the now superfluous 
setPlayer0Device function.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 17:38:01 +00:00
hikerstk
0fa6343023 Fixed VS compilation error and warnings (no hypotf).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:29:45 +00:00
davemk
ab5a57daff remove excess side_impulse friction torque on karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:24:19 +00:00
davemk
c27a807e64 item intersection uses y_offset, hat initialised properly and some redundant code removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 12:12:22 +00:00
hikerstk
1033bfdf59 1) Only Track is now using the ItemManager.
2) Fixed several memory leaks in animation code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 11:12:26 +00:00
hikerstk
756335fc8b Fixed incorrect scaling of mini map.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 10:58:42 +00:00
hikerstk
83e19ff817 Added a test version for slipsteam support. Note that besides
tweaking parameter (and potentially the implementation) there is
currently no graphical indication that you are slipstreaming,
or using a speed boost due to slipstreaming.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3847 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 04:58:37 +00:00
hikerstk
2b5a273b95 Renamed RaceManager::getKartName to getKartIdent, since this is was the function actually does :)
(prevents us printing the id instead of the name somewhere).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3846 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 04:53:51 +00:00
rforder
3c7e489698 Still tweaking kart selection menu input & menu input in general.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 01:48:15 +00:00
rforder
f3cab7c2b3 Cleaning up multi-player handling in the kart selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 19:04:01 +00:00
rforder
db1c53fa94 Moved the handling for the fire & rescue buttons in the kart selection menu out of the device manager & into the input manager (which makes more sense). No more setting the action to PA_FIRST to signify that it was handled internally (too hackish).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 18:19:02 +00:00
hikerstk
209d679a56 'Prepared' bugfix (for once we have a in-race menu):
if a player presses esc. after finishing a race in a 
GP, but before the race is finished, rerunRace() will
reset the scores and times to the previous values - 
but in case of karts who haven't finished the race 
that was undefined.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3840 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 02:55:53 +00:00
hikerstk
bd2c6c27b5 Bugfix for 2354315: items explode over void.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3839 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 00:14:51 +00:00
hikerstk
4439e7df49 Bugfix for 2804407: Playing challenges after split screen starts
the challenges in split screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 00:05:19 +00:00
hikerstk
763257d469 Bugfix: grass in castle arena slows you down.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-12 00:04:13 +00:00
auria
72c17d391b Improvements to input actions handling in GUI, implemented selection of other game modes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3829 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-11 00:55:48 +00:00
rforder
2a23fa33a8 Fixed sticky joysticks... again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3828 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 19:04:06 +00:00
rforder
abfda2b933 Input cleanup, only relays button events when the button state has actually changed. Won't issue multiple button events when the button
is only pressed once (doesn't unload arsenal when fire button is tapped, etc.).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3827 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 18:47:01 +00:00
rforder
aee48faca8 Updated input configuration GUI to work correctly with recent changes to the input system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3826 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 18:12:35 +00:00
rforder
3ef3c67213 Fix problem with DeviceConfig::getBindingAsString(), input config gui works again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3825 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 17:05:41 +00:00
hikerstk
f1a46e6d38 Fixed rotation of physical objects (like road cones).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3824 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 05:54:33 +00:00
rforder
cf8e767f5c more input code clean-up
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-09 04:12:04 +00:00
rforder
21fb622a6d Broke down mapInputToPlayerAndAction() into several composite functions to increase readability & ease efforts to debug.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 17:31:14 +00:00
hikerstk
f7183492cf Improved handling of physical objects (size computation and matching of physical
and graphical position now better) - rotations still need to be fixed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 06:21:39 +00:00
hikerstk
989220af7e Replaces tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 06:16:01 +00:00
hikerstk
5fb0903694 Updated VS project file for new files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 01:52:55 +00:00
rforder
1d681112af Fixed sticky joystick bug that cropped up in the last commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-07 00:29:43 +00:00
mbjornstk
ead55f4e21 Add normals data so it looks smooth.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 22:17:22 +00:00
rforder
f12463b4c9 Fixed temporarily broken keyboard support.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3816 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 20:13:22 +00:00
rforder
f3e3206b26 More cleanup for the input system. Removed a lot of functions from InputDevice that won't be used there anymore.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 19:05:26 +00:00
rforder
9ba0bd67d2 Added new DeviceConfig class (/config/device_config.cpp) for review. The DeviceConfig class will be responsibile for handling Gamepad and Keyboard configurations. It is now possible to share a single configuration between identical devices. Begun integration, still needs *a lot* of cleanup, but basically works.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3814 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 18:00:18 +00:00
hikerstk
671fde19cf Some code cleanup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-06 05:11:16 +00:00
hikerstk
6bed41add5 Bugfix: removed debug/test code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-05 12:58:08 +00:00
hikerstk
c64608eec7 Added fixes to STK to work with current irrlicht SVN. All changes
are in #ifdef IRR_SVN - and at this stage linking fails for atm unknown
reasons. No changes to irrlicht 1.5 compilation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-05 12:45:11 +00:00