Commit Graph

134 Commits (master)

Author SHA1 Message Date
q3k 7680c942a5 src/depot: add, move file loads to depot resolution 2021-04-28 20:18:44 +02:00
q3k 5f36ee14ed winsys: lazy initialize sfml to prevent global ctor races 2021-04-28 15:51:00 +02:00
q3k de954a5b76 *: initial bazel pass 2021-04-28 15:19:05 +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
cazfi 9db40defd1 Bumped version number to start 0.9 development
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@727 0420edf4-82e4-42fc-9478-35b55e6d67a3
2020-03-05 15:54:10 +00:00
pkeus 8534ab350b Windows: Added manifest file
Removed hardcoded image sizes for menu corners, 
Small GUI fixes:
- Correctly check for Enter key in game over menu
- Properly set focus in event menu

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@721 0420edf4-82e4-42fc-9478-35b55e6d67a3
2020-02-27 20:16:34 +00:00
cazfi 677c5d6b94 Added 2020 to copyright years
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@720 0420edf4-82e4-42fc-9478-35b55e6d67a3
2020-02-26 22:13:30 +00:00
cazfi fa3b433229 Added 2019 to copyright years
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@715 0420edf4-82e4-42fc-9478-35b55e6d67a3
2019-12-03 17:26:54 +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
cazfi 9ee386c908 Fixed a crash when score is not good enough to enter high score list
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@706 0420edf4-82e4-42fc-9478-35b55e6d67a3
2018-04-25 05:01:06 +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
cazfi c6d7d812f1 Added 2018 to copyright years
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@702 0420edf4-82e4-42fc-9478-35b55e6d67a3
2018-03-19 16:03:02 +00:00
cazfi b584b18a62 Fix comparison between pointer and an integer
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@701 0420edf4-82e4-42fc-9478-35b55e6d67a3
2018-03-19 15:59:51 +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
cazfi c128c4001c Added 2017 to copyright years
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@695 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-06-10 23:39:24 +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 bb23733009 Windows: Set window icon
Ran AStyle, removed an unused variable

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@692 0420edf4-82e4-42fc-9478-35b55e6d67a3
2017-01-19 13:25:12 +00:00
cazfi 51bcf457c7 Typofix 'detailled' -> 'detailed'
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@689 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-11-19 22:02:17 +00:00
cazfi cd24a9dd0f Replaced deprecated sf::Text::setColor() calls by
sf::Text::setFillColor() and sf::Text::setOutlineColor()


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@685 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-11-13 20:21:43 +00:00
cazfi a24564f9bc Fixed infinite loop when window resize event has been received to size
different from what's in settings.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@680 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-10-27 06:08:12 +00:00
cazfi 6d7a85113d Fixed one clang compiler warning
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@678 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-07-22 19:38:01 +00:00
cazfi 220026e437 Renamed 'options' as 'options.txt' on systems where former name was used.
Loading falls back to using old file if the new one does not exist.
Saving always happens to the new filename.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@671 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-07-22 15:43:27 +00:00
cazfi d6d9069b9e Silenced clang++ warnings about keys not handled in switches.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@667 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-06-24 23:48:14 +00:00
cazfi f23e5fde69 Corrected reference to 'options.lst' to say just 'options'.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@665 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-06-24 23:25:44 +00:00
pkeus 1e3334b5f7 Implemented more convenient behaviour for certain up/down menus
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@661 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-05-18 09:38:22 +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
cazfi 0513371751 Typofix "Exprimental" -> "Experimental"
Spotted by debian Lintian.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@658 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-04-14 18:19:33 +00:00
cazfi f0c580b957 Turned some std::string instances to sf::String to avoid
unnecessary conversions between the two.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@652 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-04-11 17:15:14 +00:00
cazfi da8a8a0a03 Fixed narrowing errors from clang compilation.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@651 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-04-11 16:19:37 +00:00
pkeus 5498c13d76 Improved support for joystick buttons.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@646 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-03-04 10:10:14 +00:00
pkeus c2458aeb3a Fixed joystick handling:
- Always activate joysicks, removed mechanism to deactivate joysticks by a macro (broken since switch to SFML).
- Fixed data range for axis movements (-100 to +100)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@645 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-03-01 09:58:14 +00:00
pkeus 3436509c11 Removed unused fonts, improved prepare_build_installer.bat, ran AStyle
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@644 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-02-29 10:03:40 +00:00
cazfi d54c9e3db5 Save screenshots under .etr subdirectory of user home directory.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@638 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-02-04 10:50:08 +00:00
pkeus 817281efc3 Refactorizations:
- Use initializer lists (C++11)
- Fixed several cppcheck messages, mostly about uninitialized variables in constructors
- particles.cpp: Improved parameter values and simplified code

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@635 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-29 09:05:00 +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 6ad6e307b5 Updated french translation and updated credits.lst
CTexture::DrawNumChr(): Pass unsigned values to std::isdigit

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@625 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-23 19:57:00 +00:00
pkeus 8520c14159 Fixed bug in tool_char.cpp introduced by SDL->SFML conversion (found by clang)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@618 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-21 21:40:19 +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
cazfi bc1c836e3a Use sf::String::substring() instead of std::string::substr()
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@607 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-20 08:15:50 +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 78729153f1 Added missing std:: prefixes to several C functions. Fixed type conversion issue in ogl.cpp
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@602 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 16:16:09 +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 7420115fbe Fixed 128 type conversion warnings from VS.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@600 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-19 13:07:10 +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 e579231482 Translation and course description update:
- Added missing course "laberinto" to extras/courses.lst
- Updated german translation
- Fixed a few course descriptions
- Added back missing string in highscore menu

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@588 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-16 10:09:53 +00:00
cazfi b0b0c08ebb Coding style correction (astyle)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@584 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-15 21:32:36 +00:00
cazfi 13a776a6f9 Prepared trunk for 0.8 development by bumping version numbers.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@577 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-15 19:53:02 +00:00
cazfi 9b7c3e03be Made Highscore list texts translatable.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@571 0420edf4-82e4-42fc-9478-35b55e6d67a3
2016-01-15 17:23:23 +00:00