Commit Graph

633 Commits (master)

Author SHA1 Message Date
pkeus a10cdbd9ba Fixed some inconsistent line endings caused by previous commit
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@354 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-11 18:07:30 +00:00
pkeus 2ba849018f Second include cleanup:
- Resolved top-level include of special stuff like physics or winsys
- Removed some more and some newly appeared unnecessary includes

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@353 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-11 17:49:59 +00:00
pkeus 6f10196682 Added WiX-Installer for Windows, supporting both x64 and x86 builds
Readded Icon, used as resource for exe file
Created banner for installer from icon (like in old 0.4 installer)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@352 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-10 19:18:38 +00:00
pkeus 43984de413 Created GUI control TTextField, replacing local implementation in newplayer.cpp by a generic one
Fixed another memory leak

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@351 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-05 19:45:27 +00:00
pkeus 3e1b8681c8 Fixed several uninitialized reads and memory leaks found by DrMemory.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@350 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-04 21:06:43 +00:00
pkeus 1c70ef278f Return const string& where possible
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@349 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-04 19:27:49 +00:00
pkeus 3c46fb099b Cache mirroring state to be able to mirror a cached course
Fixed leaking vnc_array whenever course is mirrored
Small optimizations

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@348 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-04 19:06:07 +00:00
pkeus a6e289f2e0 Removed unused code, passed some parameters as const references
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@347 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-04 09:42:44 +00:00
pkeus 0e5373f406 Fixed view problem when starting a race the second time
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@346 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-03 19:03:27 +00:00
pkeus 2f5a97baca Restored variable removed by mistake - fixes compilation
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@345 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-06-03 18:28:11 +00:00
pkeus df0a19a8d4 Fixed syntax error
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@344 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 19:06:02 +00:00
pkeus 3916508aa7 Refactorized mathlib
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@343 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 19:01:04 +00:00
pkeus 3c5713d693 Use operator delete[] instead of free()
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@342 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 18:09:53 +00:00
pkeus 475de9b836 Refactorized etr_types.h:
- Added constructors to Vectors, Indices and Colors, replacing Make* functions
- Removed/Moved several stuff that was not needed here

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@341 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 17:59:58 +00:00
pkeus 786b3e70cb Optimizations and cleanup in view and env:
- Removed unused code and variables
- Declare variables when they are needed
- Avoid copying TPlane by using references

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@340 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 09:40:48 +00:00
pkeus eb95b614bd Reimplemented track_mark code based on STL list (reducing memory footprint and binary size)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@339 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-23 09:35:26 +00:00
pkeus 116b289433 Removed several unused/redundant variables and functions
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@338 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-22 19:28:50 +00:00
pkeus 1b4f91ad30 Reformatted quadtree.cpp which was apparently using different assumption on TAB length then all other source files.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@337 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-16 14:33:52 +00:00
pkeus 84ff1e6ee9 Several VS related fixes:
- Fixed signed/unsigned warnings appearing when compiling for x86
- Use v110_xp toolset when compiling for x86 to make ETR running on Windows XP

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@336 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-16 14:25:45 +00:00
pkeus 2183970c6e Added .rc file to set meta information on windows
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@335 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-16 13:54:16 +00:00
pkeus 97b4f79c8e Added solution for Visual Studio
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@334 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-16 13:10:23 +00:00
pkeus 7f49df7099 Use STL list instead of array for credits list
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@333 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 20:45:05 +00:00
pkeus 891910ec25 Refactorizations related to enums and macros
- Removed unused macros
- Fixed two broken include guards
- Replaced C-Style "typedef enum" by C++-Style "enum"
- Replaced some macros by enum
- Removed comments containing structure definitions from SDL

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@332 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 20:20:12 +00:00
pkeus e597fa0af3 Refactorizations:
- Removed unused function DrawStdSphere
- Avoid usage of MakeColor where possible
- Prefer empty() over size() where possible
- Removed two unused variables in TParam

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@331 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 19:40:57 +00:00
pkeus 5d9f20f328 Avoid N-suffix to mark "modern" versions of functions
Use modern versions where possible

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@330 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 18:18:53 +00:00
pkeus 5ff592af1e Improved OS-specific configuration:
- Don't rely on build system - use system's macros to determine target
- "Fallback" configuration (=Unix) in case nothing could be determined to avoid undefined states in configuration
- Removed useless OS_WIN32_NATIVE configuration - the compiler behaves either like MSVC or like GCC. If there is anything different, a new configuration with that compilers name should be added
- Undefined DrawText when using MSVC to avoid strange effects in font.h where a class has a member DrawText

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@329 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 17:58:09 +00:00
pkeus b303c686b2 Proper DirExists implementation for MSVC - don't use chdir+getcwd to find directory
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@328 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-15 17:33:48 +00:00
cazfi 138816689e Renamed Barack as Beastie
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@327 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-13 22:11:56 +00:00
pkeus b69e27119b Simplified code in spx.h/cpp, removed unused functions
Removed some unnecessary calls to string::c_str()

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@326 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-12 11:04:38 +00:00
cazfi d9d73b1823 Configure checks for SDL_image and SDL_mixer
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@325 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-12 06:38:29 +00:00
pkeus a1bb8709a1 Improvements to translation and game_config modules:
- Attempt to retrieve default language of operating system (Currently only implemented for Windows)
- Translated even splash screen
- Improved style of game_config module

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@324 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 18:04:53 +00:00
pkeus 34f24b73e1 Added missing translation in newplayer.cpp and fixed GUI bug
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@323 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 17:17:29 +00:00
pkeus 8f6d122182 Slightly improved GUI in event/event_select.cpp
Increased constness of several static variables

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@322 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 17:09:20 +00:00
pkeus fc4caf0f41 Rearranged some structures to avoid padding
Renamed TKeyframe2 to TKeyframe
Removed whitespaces at line end

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@321 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 16:41:17 +00:00
pkeus 21b1ce0d6a Refactorized code around Tux module:
- Fixed several sign issues
- Use STL containers
- Simplified code

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@320 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 11:51:10 +00:00
pkeus 9c2645f84b Replaced some more slow string indices by std::map.
Fixed once again signed/unsigned issues

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@319 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 09:39:07 +00:00
pkeus 27614b6a2f Fixed bugs in highscore parsing:
- numScores was uninitialized
- Highscore has to be saved before course list is destroyed

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@318 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 09:17:56 +00:00
pkeus a3fe0c7e17 Replaced some more slow string indices by std::map.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@317 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 08:40:30 +00:00
pkeus da08d436c0 Removed debugging code committed by mistake (unnecessary member TTexture::name)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@316 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 08:12:53 +00:00
pkeus 0679f3d9a5 Started reimplementing texture handling:
- Implemented RAII for textures, use TTexture objects instead of GLuint out of texture module
- Use map instead of string to associate names with textures

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@315 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-11 08:04:05 +00:00
pkeus a1085e69cd Enabled changing resolution live on Windows (There is apparently no need ot disable it - at least with MSVC it works)
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@314 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-10 19:10:01 +00:00
pkeus 7bf56e3a39 Replaced C-Style typedef struct {} foo; by C++-Style struct foo {}; everywhere
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@313 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 18:06:50 +00:00
pkeus 522aba0d28 More refactorizations related to GUI module and sign issues:
- Simplified code in regist.cpp
- Use size_t instead of int
- Removed garbage whitespaces


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@312 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 17:40:59 +00:00
pkeus d1bbbe2c8c More refactorizations related to game_ctrl and event modules:
- Use STL containers, removing limitations for cups and races per event
- Use size_t instead of int
- Removed several unused variables
- Removed garbage whitespaces
- Fixed compilation with GCC (#include <algorithm> missing)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@311 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 16:26:19 +00:00
pkeus d4916fa1ee More refactorizations related to audio and course modules:
- Use size_t instead of int
- Removed several unused variables
- Removed garbage whitespaces

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@310 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 15:26:57 +00:00
pkeus c82f93e2c7 Removed NewStr function
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@309 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 11:29:56 +00:00
pkeus 9af7a0e90e Replaced printf by cout; Replaced malloc by new/new[]
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@308 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-09 10:44:25 +00:00
cazfi d0156e39ea Request C++11 compatibility
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@307 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-08 23:32:34 +00:00
cazfi 793cff4d9a Fixed Linux compile.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@306 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-08 23:23:35 +00:00
pkeus dd2149a250 Improved usability of race select GUI:
- Pressing enter starts race, almost regardless of focus
- Remember previously selected race

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@305 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-05-05 10:20:05 +00:00