Commit Graph

502 Commits (1fd21eec7fcc872d8e093597d0a55535f50306d4)

Author SHA1 Message Date
pkeus 1fd21eec7f Updated documentation and Windows build tools:
- NEWS now contains release notes
- Added description of the VS solution
- Enforce standard compliant type conversion rules and disable RTTI (we do not use it and disabling reduces binary size) in VS solution
- Fixed some bugs in the wixproj

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@546 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-14 10:53:47 +00:00
pkeus d18c5fd78b Added courses from extremetuxracer-extras package
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@545 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-14 10:46:48 +00:00
pkeus 12b775197d Cleaned up default courses and fixed crashs highscore handling related to course-groups:
- Moved description ouf courses to .dim files (where the translated descriptions are already)
- Removed course "course" which was unused and is so short that it does not make sense to use it (seems to be an old proof-of-concept)
- Removed obsolete .tcl file
- Fixed crash when loading the highscore from a non-existent course
- Fixed crash when trying to save highscore of non-default courses

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@544 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-13 16:13:01 +00:00
pkeus 5660f808a6 Optimization: Reduced amount of padding bytes in data structures
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@543 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-09 11:04:11 +00:00
pkeus dc7119a404 Bugfix: Reset key states in racing.cpp when entering the state.
Simplified some code.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@542 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-08 20:29:39 +00:00
pkeus fcc6658ae4 Fixed compilation issues:
- Fixed warnings about type conversions
- Switch back to deprecated sf::Text::setColor(), as sf::Text::setFillColor() is not available in SFML 2.3.2

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@541 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-08 20:28:17 +00:00
pkeus f2a51edf30 Small GUI improvements and bugfixes:
- Better choice for default focus in some menus
- Properly hide UI elements when loosing a cup
- Refactorized Credits menu to use forward_list instead of list; Fixed out-of-bounds access.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@540 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-08 19:54:00 +00:00
pkeus edf6bdbae6 Bugfixes:
- Removed ambiguous shortcut from TIconButton control
- Fixed rendering of track marks at environments that are not "sunny"

Refactorizations:
- Removed unused code
- Simplified code in track_marks.cpp

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@539 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 19:44:32 +00:00
pkeus bcca5243bc Fixed broken reset code. It relied on the uninitialized variable TObjectType::num_items before.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@538 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 15:42:54 +00:00
pkeus bc73e042f8 Various fixes and improvements:
- Prepare drawing of snow or particles only if there are such
- Call "Env.SetupLight();" instead of declaring "void SetupLight();" in racing.cpp
- Show correct avatar in registration menu

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@537 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 15:12:14 +00:00
pkeus 62634d1b4d Fixed CppCheck and VS Code Analysis messages, replaced usage of deprecated sf::Text::setColor()
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@536 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 13:00:59 +00:00
pkeus 4068ade101 Updated to Visual Studio 2015
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@535 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-07 12:24:14 +00:00
cazfi 5b1a06f079 Made SFML2 branch the new trunk.
Moved old trunk as branches/old_SDL.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@534 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-11-27 04:29:41 +00:00
pkeus 36dfdbf550 Refactorizations:
- Break dangerous inheriting of TVector4 from TVector3 from TVector2: Silent casts between them could cause bugs if function is not implemented for the actual type
- Implemented unary minus operator for TVector* types; Implemented DotProduct for TVector4
- Fixed some cppcheck messages
- Some stylistic fixes

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@533 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-09-20 18:18:19 +00:00
cazfi 8892c10d53 Added pkg.m4
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@530 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-29 05:18:35 +00:00
cazfi e38e58e193 Added pkg.m4
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@529 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-29 05:17:45 +00:00
cazfi 0a9ce3955c Added pkg.m4
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@528 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-29 05:17:28 +00:00
cazfi 435bd1976b Removed herringicon3.png from the filelist.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@527 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 02:34:56 +00:00
cazfi 0969c1a365 Replaced SDL configure checks with SFML checks.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@526 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 02:30:22 +00:00
cazfi 57acfa10c1 Removed ft_font.h from headers list.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@525 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 02:27:17 +00:00
cazfi 431ee9345f Include <climits> to ogl.cpp for INT_MAX
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@524 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 02:08:56 +00:00
cazfi a2a2ed71e2 Add Makefile.am for new data/courses/default directory
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@523 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 02:01:26 +00:00
cazfi 4afad3b149 Adjusted autotools build for courses directory hierarchy changes.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@522 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-08-02 01:58:22 +00:00
pkeus 15085ce2d6 Refactorizations:
- Visual Studio: Increased warning level to W4 (minus C4100 and C4512), enabled /Zc:inline
- Replaced NULL by nullptr
- Replaced 3 dynamically allocated arrays by a single std::vector CCourse::Fields
- Fixed a few MSVC W4 warnings

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@521 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-13 19:05:24 +00:00
pkeus 2cb8155816 Merged revision(s) 515 from branches/SFML2:
Refactorizations:
- Reduced time spend in set_material(), reduced calls in track_marks.cpp
- Uniformized some more double/float usage
- Prefer copy_n over memcpy, fill_n over memset
........

Merged revision(s) 518 from branches/SFML2:
Bugfixes:
- Slightly improved error handling (not fully merged from branches/SFML2)
- Fixed Credits GUI broken in r492
- Updated some copyright dates to 2014

Refactorizations:
- Fixed some warnings
- Avoid copying TScore objects
- Small simplifications
........

Fixed mistake in previous merge commit.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@520 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-13 15:48:20 +00:00
pkeus 6d5872cb2b Merged revision(s) 512 from branches/SFML2:
Several small improvements:
- Translate word "author"
- Improved handling of KeyRepeat
- Added Icon to Installer
........

Fixed a few bugs caused by recent merges


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@519 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-13 15:15:14 +00:00
pkeus ee1be7908c Bugfixes:
- Improved handling of missing data/configuration files: Print error message instead of crashing
- Fixed "auto" resolution: Use desktop mode for fullscreen
- Fixed GUI scaling in higher resolutions than 800*600
- Fixed Credits GUI broken in r492
- Updated some copyright dates to 2014

Refactorizations:
- Fixed some warnings
- Avoid copying TScore objects
- Small simplifications

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@518 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-12 19:00:57 +00:00
pkeus 16c58e954a Merged revision(s) 492 from branches/SFML2:
Reimplemented CSPList on top of std::list<string>
Fixed a few cppcheck findings
........

Merged revision(s) 505 from branches/SFML2:
Refactorizations:
- Make use of C++11 feature emplae_back() to avoid object copying
- Rewritten frame copying
- Avoid converting sf::String to std::string
- Provide rvalue reference overload for CSPList::Add()
........


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@517 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-11 08:23:29 +00:00
pkeus df4a95d199 Merged revision(s) 491 from branches/SFML2:
Uniformized paranthese padding with AStyle, use AStyle 2.04

........
Merged revision(s) 489 from branches/SFML2:
Removed all empty translations to avoid confusion
Save language as string to avoid problems when languages.lst changes

........
Merged revision(s) 488 from branches/SFML2:
New features:
- Translatability of statistics at end of race
- Adapt GUI particle count to screen size

Fixes:
- Remember selected race in GUI
- Fixed crash in Debug mode when loading course without any trees
- Simplified collision detection

........
Merged revision(s) 487 from branches/SFML2:
Refactorizations:
- Check for gl_error automatically (in states)
- Cleaned up some unnecessary includes
- Removed some index maps that offer no performance gain
- Load credit text on demand and unload it when leaving credits menu
- Replaced loadIdentity+multMatrix by loadMatrix

........

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@516 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-11 07:58:50 +00:00
pkeus ad659cf18b Refactorizations:
- Reduced time spend in set_material(), reduced calls in track_marks.cpp
- Uniformized some more double/float usage
- Prefer copy_n over memcpy, fill_n over memset

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@515 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-10 21:25:13 +00:00
pkeus 7aeae80081 New Features:
- Translatable course names and descriptions
- Selection of race group in "practice" menu


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@514 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-10 11:43:36 +00:00
pkeus 896890e042 Added support for course groups. Only use group "default"
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@513 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-09 13:26:23 +00:00
pkeus 97d109235f Several small improvements:
- Fixed crash in sf::SoundBuffer destructor on startup caused by copying of TSound instances in std::vector<TSound> - replaced it with std::vector<TSound*>
- Improved GUI performance of TTextField and TIconButton by pre-creating SFML objects
- Translate word "author"
- Improved handling of KeyRepeat
- Added Icon to Installer

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@512 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-09 09:47:56 +00:00
cazfi 4c68584a13 Include SFML header before local headers.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@511 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:53:19 +00:00
cazfi 041b82d19b Avoid using SFML2 string class substring()
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@510 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:52:32 +00:00
cazfi 1bb9b3f1cf Removed ft_font.cpp from list of source files.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@509 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:43:30 +00:00
cazfi 41b607d5f5 Renamed etracericon.svg as etr.svg and install it as icon.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@508 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:27:21 +00:00
cazfi fc2a8e62e3 Renamed etracericon.svg as etr.svg and install it as icon.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@506 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:21:06 +00:00
pkeus 5251ccb2b2 Refactorizations:
- Make use of C++11 feature emplae_back() to avoid object copying
- Rewritten frame copying
- Avoid converting sf::String to std::string
- Provide rvalue reference overload for CSPList::Add()

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@505 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-04-05 17:49:48 +00:00
pkeus 1a058f4f00 Refactorization: Removed useless parameter 'unsigned int mod' and 'bool special'
Bugfix: Fixed key events are counted twice in main menu

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@504 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-04-05 16:35:47 +00:00
pkeus a6f5aecdb1 Refactorizations:
- Store time as float, resolving several compilation issues with clang
- Added missing virtual destructor in GUI
- Fixed typo in OS_WIN32_MINGW (bh.h)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@503 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-17 18:51:23 +00:00
pkeus 49969b7924 Merged revision(s) 493-500 from trunk:
Include <sys/stat.h> for mkdir() declaration.

........
Include <string.h> for memcpy() declaration.

........
Fixed compile errors caused by mismatched ints and doubles.

........
Include <string.h> for memset() declaration.

........
Made templates standard compliant. Unqualified name lookup does not look
into dependent base classes.

........
Added new matrices.[cpp|h] and vectors.[cpp|h] sourcefiles to build. 

........
Avoid shadowing of the template parameters with local variables.

........
Updated lists of resource files to install.

........


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@502 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-09 09:20:32 +00:00
cazfi 254f893ea0 Fixed seconds vs milliseconds mixup causing game to run 1/1000 speed.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@501 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 04:05:50 +00:00
cazfi 637138dadf Updated lists of resource files to install.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@500 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:56:06 +00:00
cazfi 61df9cb648 Avoid shadowing of the template parameters with local variables.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@499 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:45:16 +00:00
cazfi 89c716b93b Added new matrices.[cpp|h] and vectors.[cpp|h] sourcefiles to build.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@498 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:41:31 +00:00
cazfi 1a580f8646 Made templates standard compliant. Unqualified name lookup does not look
into dependent base classes.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@497 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:35:08 +00:00
cazfi bfa6e7bb3f Include <string.h> for memset() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@496 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:33:41 +00:00
cazfi 68df0a8fce Fixed compile errors caused by mismatched ints and doubles.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@495 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:31:43 +00:00
cazfi 071eebf830 Include <string.h> for memcpy() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@494 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:17:18 +00:00