- 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
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
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
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
- 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
- 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
- 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
- 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
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
- Changed key shortcuts in GUI to provide more consistent behaviour
- Clicking on a control locks focus to it
- Fixed focussing in event menu
- Fixed broken TTextField
Other changes:
- Fixed german translation
- Small refactorizations
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@490 0420edf4-82e4-42fc-9478-35b55e6d67a3
- Support resolution and fullscreen changing without restart in both Windows and Linux
- 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
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@488 0420edf4-82e4-42fc-9478-35b55e6d67a3
- 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/branches/SFML2@487 0420edf4-82e4-42fc-9478-35b55e6d67a3
- Removed obsolete sound settings
- Adapted types and limits of settings to actual needs of ETR
- Changed default BPP mode to 0 (choose system's mode. Now implemented) instead of 1 (16-bit)
Bugfixes:
- Fixed track marks being broken since sf::Color introduction
- Fixed splash screen logo position
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@486 0420edf4-82e4-42fc-9478-35b55e6d67a3
- Decrease focus on Shift+Tab
- A UI widget will be focussed on startup of a menu.
- Focus snaps back to last by keyboard focussed widget when mouse leaves a widget
- Fixed activation behaviour of arrows in TUpDown widget
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@484 0420edf4-82e4-42fc-9478-35b55e6d67a3
Refactorizations:
- Avoid duplicating object properties
- Avoid adding literals - apparently this is not optimized by some compilers
- Use STL containern to store vertices in TPolygon
- Formatted with AStyle 2.04
........
Use STL in Polyhedrons, reduced redundant data storage in game_ctrl
........
Use pointers instead of indices in several places
........
Code and data cleanup:
- Cleaned up textures: Keept only those in /data/textures that are currently needed by the game. Resized several textures to remove empty space
- Refactored HUD, fixed bug in wind display when racing upwards the hill
- Removed apparently unnecessary environment box rendering in quadtree code, improving framerate during race
........
Added perf_level 4: Use High resolution textures for skybox.
........
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@483 0420edf4-82e4-42fc-9478-35b55e6d67a3
- Cleaned up textures: Keept only those in /data/textures that are currently needed by the game. Resized several textures to remove empty space
- Refactored HUD, fixed bug in wind display when racing upwards the hill
- Removed apparently unnecessary environment box rendering in quadtree code, improving framerate during race
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@481 0420edf4-82e4-42fc-9478-35b55e6d67a3
- Avoid duplicating object properties
- Avoid adding literals - apparently this is not optimized by some compilers
- Use STL containern to store vertices in TPolygon
- Formatted with AStyle 2.04
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@478 0420edf4-82e4-42fc-9478-35b55e6d67a3