Commit Graph

27 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 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 4f1f702b7d Updated to Visual Studio 2017
Reserve memory for some std::vectors to optimize their allocation behaviour

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@698 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-08-27 14:37:42 +00:00
pkeus debff52b66 Improved TTextField widget: set cursor position when clicking, more efficient calculation of cursor position
Fixed several cppcheck messages

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@693 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-03-28 16:41:50 +00:00
pkeus 443ff32862 Improved translatability of some strings
Fixed wrong course dimensions in wild_west_chute_out

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@660 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-05-18 09:20:27 +00:00
pkeus e1d7d0b848 Several small changes:
- Fixed keyboard navigation into help menu (do not exit immediately)
- Fixed forgotten size parameter to CSPList in game_ctrl.cpp
- Added std:: prefix to exit() call
- Do not use atoi to convert a char to an integer

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@613 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-21 14:37:58 +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 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 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 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 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 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 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 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 b0911a942b Use STL in Polyhedrons, reduced redundant data storage in game_ctrl
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@479 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-27 08:33:26 +00:00
pkeus 0484183cbe 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

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@478 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-26 15:46:54 +00:00
pkeus 5f39d2424f Fixed several bugs found by cppcheck, removed no longer supported and required mipmap functions
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/branches/SFML2@476 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-22 19:51: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 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 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 a5a0eb3989 Refactorizations:
- Replaced own MIN/MAX by std::min/max, use clamp whenever possible
- Use delete[] if necessary
- Refactorized light functionality: Moved similar code into function
- Enabled environment caching: Reload environment only if necessary
- Put TOdeData on stack

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@444 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 13:24:19 +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