Commit Graph

21 Commits (7680c942a5f164e2a1bd0cecc3d0c5c0e3f5b011)

Author SHA1 Message Date
q3k 7680c942a5 src/depot: add, move file loads to depot resolution 2021-04-28 20:18:44 +02:00
pkeus 68f971fccc Various small Optimizations:
- Use final specifier
- Use STL reserve() function more often
- Replace forward_list by vector for storing credits entries

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@731 0420edf4-82e4-42fc-9478-35b55e6d67a3
2020-03-07 18:14:19 +00:00
pkeus e79a1f28b3 Fixed webpage URL in credits
Fixed lighting of trees (thanks to Reinhard Niehoff)
Updated Visual Studio solution to VS 2019
Small optimizations:
- Try to make use of reserve() functions of STL containers
- Use MakePathStr to create paths

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@714 0420edf4-82e4-42fc-9478-35b55e6d67a3
2019-11-04 09:09:53 +00:00
pkeus 5abb921456 Refactorizations:
- Prefer std::unordered_map over std::map
- Sort CollArr by treetypes to avoid frequent texture rebinding

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@703 0420edf4-82e4-42fc-9478-35b55e6d67a3
2018-03-22 16:17:58 +00:00
pkeus 0a80bb84aa Refactorizations:
- Removed TColor3, use sf::Color instead
- Introduced more C++11 features: Use constexpr and defaulted/deleted functions
- Made several member functions static or const
- Removed dead code

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@631 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-28 10:41:09 +00:00
pkeus 2506c7300f Fixed bug in spx.cpp introduced in r597.
Fixed conversion from GLint to GLshort.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@599 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-18 19:29:53 +00:00
pkeus 85a6b4d9f9 Removed "using namespace std;"
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@598 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-18 16:55:59 +00:00
pkeus 5b57a1380b Removed line number limitation "feature" from CSPList and hence the limitations on the size of several data structures while loading them. The limits are arbitrary and are technically not necessary.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@597 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-18 16:10:27 +00:00
pkeus 6dd5346246 Small refactorizations and fixes:
- Fixed line ending of groups.lst
- Fixed GUI behaviour in race_select.cpp
- Removed redundant small menu title, use large one instead
- Code cleanups

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@550 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-14 22:34:42 +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 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 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 d8a1ec6b68 Reimplemented CSPList on top of std::list<string>
Fixed a few cppcheck findings

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@492 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-07 11:23:50 +00:00
pkeus ee38139d2a Uniformized paranthese padding with AStyle, use AStyle 2.04
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@491 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-01-18 09:55:13 +00:00
pkeus 6b56742877 Replaced TColor (float-based) by sf::Color (byte-based)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@473 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-02 11:48:13 +00:00
pkeus 07bd482769 Replaced TIndex* types by TVector*i
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@462 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 10:21:09 +00:00
pkeus 7afb08f242 Moved Vector* types out of etr_types.h; Implemented as object-oriented templates; Replaced several function by overloaded operators
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@457 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 18:17:59 +00:00
pkeus 1ec2d11761 Implemented adjustable framerate control
Simplified calls to Message() SPStrN() and adding empty lines to CSPList

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@447 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-12 17:39:10 +00:00
pkeus 2745a24f10 Removed several unnecessary stuff, removed code duplication in audio code, made some single-statment-functions inline in classes
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@446 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 18:28:39 +00:00
pkeus 4c37a66b4e Fixed several cppcheck messages
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@437 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 11:14:32 +00:00
cazfi 83abd1b455 Moved sources to their own subdirectory src
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@417 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-26 21:02:38 +00:00