Commit Graph

24 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 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 ca62e16ae8 Refactorization: Use proper <cmath> functions, such as std::hypot() and std::log2() where appropriate. Added missing std:: prefix to some more <cmath> functions.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@603 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 16:52:26 +00:00
pkeus ee35f1a467 Applied patch by Mattias Ugelvik:
- Use different coloring in HUD in event mode to indicate how well the player does
- Added missing std:: prefixes for min() and max() functions

Define NOMINMAX in VS solution to get rid of the WinAPI definition of min() and max() as macros.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@601 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 13:27:21 +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 1da426d3fe Bugfixes:
- Fixed track marks when limit (10000) is reached
- Remember selected course group in race selection menu

Some small refactorizations

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@547 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-14 16:13:07 +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
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 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 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 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
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 e2b58a7b9b Updated settings:
- 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
2013-11-30 09:17:19 +00:00
pkeus 12cb17cc1b 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

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@481 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-27 19:20:04 +00:00
pkeus df0203e807 Use pointers instead of indices in several places
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@480 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-27 17:11:54 +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 98f256a751 Removed unnecessary code
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@458 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-01 18:51:52 +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 e9e8417d51 Refactorizations:
- Changed CCourse::LoadObjectMap to CCourse::LoadAndConvertObjectMap
- Replaced some strings by integers
- Removed unused variable loopdelay
- Removed unnecessary TVector3 constructor calls

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@451 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-29 16:42:23 +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
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