Commit Graph

435 Commits (df4a95d1992f65075e7300a107c7fc9016445551)

Author SHA1 Message Date
pkeus df4a95d199 Merged revision(s) 491 from branches/SFML2:
Uniformized paranthese padding with AStyle, use AStyle 2.04

........
Merged revision(s) 489 from branches/SFML2:
Removed all empty translations to avoid confusion
Save language as string to avoid problems when languages.lst changes

........
Merged revision(s) 488 from branches/SFML2:
New features:
- Translatability of statistics at end of race
- Adapt GUI particle count to screen size

Fixes:
- Remember selected race in GUI
- Fixed crash in Debug mode when loading course without any trees
- Simplified collision detection

........
Merged revision(s) 487 from branches/SFML2:
Refactorizations:
- Check for gl_error automatically (in states)
- Cleaned up some unnecessary includes
- Removed some index maps that offer no performance gain
- Load credit text on demand and unload it when leaving credits menu
- Replaced loadIdentity+multMatrix by loadMatrix

........

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@516 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-07-11 07:58:50 +00:00
cazfi fc2a8e62e3 Renamed etracericon.svg as etr.svg and install it as icon.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@506 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-05-13 22:21:06 +00:00
cazfi 254f893ea0 Fixed seconds vs milliseconds mixup causing game to run 1/1000 speed.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@501 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 04:05:50 +00:00
cazfi 637138dadf Updated lists of resource files to install.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@500 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:56:06 +00:00
cazfi 61df9cb648 Avoid shadowing of the template parameters with local variables.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@499 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:45:16 +00:00
cazfi 89c716b93b Added new matrices.[cpp|h] and vectors.[cpp|h] sourcefiles to build.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@498 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:41:31 +00:00
cazfi 1a580f8646 Made templates standard compliant. Unqualified name lookup does not look
into dependent base classes.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@497 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:35:08 +00:00
cazfi bfa6e7bb3f Include <string.h> for memset() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@496 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:33:41 +00:00
cazfi 68df0a8fce Fixed compile errors caused by mismatched ints and doubles.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@495 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:31:43 +00:00
cazfi 071eebf830 Include <string.h> for memcpy() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@494 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:17:18 +00:00
cazfi 1d72918f5a Include <sys/stat.h> for mkdir() declaration.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@493 0420edf4-82e4-42fc-9478-35b55e6d67a3
2014-02-08 03:12:53 +00:00
pkeus f6e2bf399a Merged revision(s) 478-482 from branches/SFML2:
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
........
Use STL in Polyhedrons, reduced redundant data storage in game_ctrl
........
Use pointers instead of indices in several places
........
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
........
Added perf_level 4: Use High resolution textures for skybox.
........



git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@483 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-11-27 20:45:32 +00:00
pkeus 5f56174c44 Configured bh.h as precompiled header (built into main.obj): Speeds up compilation by 300%.
Upgraded solution to VS2013

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@464 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 11:09:43 +00:00
pkeus 6b1a458065 Moved several types out of etr_types.h, removed mathlib from standard includes
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@463 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-04 10:35:22 +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 df18d00a07 Added object-oriented template TMatrix, replacing dangerous double[4][4] typedef
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@461 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-03 19:00:52 +00:00
pkeus 59429647f4 Fixed crash caused by uninitialized variable introduced in last commit
Refactorizations:
- Reduced code duplication with template
- removed unused code
- use string instead of char*

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@460 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-03 13:11:40 +00:00
pkeus 9620453033 Added release-helper script that removes all makefiles before building installer.
Various refactorizations.

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@459 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-10-02 19:37:38 +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 c0d980ce6f Optimized math function usage
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@456 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 16:20:28 +00:00
pkeus 7895b95675 Refactorizations:
- Removed several unused variables
- Use int instead of float instead of double where appropriate
- Fixed keymapping in credits screen (u disables UI snow, not Tab)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@455 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 15:26:28 +00:00
pkeus 265d258f4e Added more gl*() simplification functions for ETR types
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@454 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 10:39:30 +00:00
pkeus 1d5c6ffa8f Converted more code to using glVertexPointer instead of glVertex2f
Introduced method to call glColor with a TColor
Use Integer instead Float instead of Double where appropriate

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@453 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-30 10:16:40 +00:00
pkeus bf115c2378 Converted lots of code to using glVertexPointer instead of glVertex2f
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@452 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-29 18:32:44 +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 bdd99257d1 git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@448 0420edf4-82e4-42fc-9478-35b55e6d67a3 2013-09-13 08:08:37 +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 3cb84c894b Silenced MSVC warnings in ft_font.cpp
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@445 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 16:25:40 +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
pkeus f868bc7f3e Fixed compiler warnings from GCC
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@442 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:49:54 +00:00
pkeus d29715eb3f Fixed non-functional "OK"-Button in event menu
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@441 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:45:03 +00:00
pkeus 6f696dcb2c Refactorizations:
- Cleaned up includes: Moved as much system-independant includes out of bh.h
- Removed second implementation of TGA writing - they are doing the same
- Removed some redundant defines in bh.h
- Updated copyright date in main.cpp output

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@440 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-11 09:28:51 +00:00
pkeus a5348fabf8 Several refactorizations:
- Removed several unused and unusable functions
- Rewrote BMP writing
- Reduced variable scope
- Use const char* instead of char[40] in gl_values

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@439 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 14:09:21 +00:00
pkeus 5bc10e9505 Removed unnecessary defines in bh.h
Fixed runastyle scripts after code moved to /src

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@438 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-09-03 13:59:01 +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 bbadb5adb2 Set version numbers for 0.7 development version.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@436 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:54:54 +00:00
cazfi e75c2fa5d3 Replaced credits claim that translators will be listed in final release
with note that we don't know past translators.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@434 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:46:13 +00:00
cazfi f4e7781710 Replaced non-functional URL to extremetuxracer.com with URL to
sourceforge page.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@432 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 23:35:55 +00:00
cazfi 44a6ce28fa Removed Catalan from the list of languages to select as translation
file for it is missing.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@430 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 22:10:14 +00:00
cazfi 96e4bd247a Removed "[trans]" tag erronously included "Race aborted" text itself.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@428 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-31 21:06:10 +00:00
cazfi 8ecf3d055f Distribute banner.bmp and dialog.bmp.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@426 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 09:23:52 +00:00
pkeus 5b626e419c Translated a string in config_screen
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@425 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 07:46:44 +00:00
pkeus 4a3077bf3e Updated Visual Studio Solution after source moved to /src
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@424 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-30 07:45:46 +00:00
cazfi 7e9be24867 Distribute .desktop file and icon.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@422 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 10:31:48 +00:00
cazfi 3877029180 Install some of the documents.
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@420 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 10:18:08 +00:00
cazfi a13cba8ac7 Added .desktop file, originally from Debian but slightly modified.
.png icon generated from our source .svg.


git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@418 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-29 09:51:10 +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
pkeus 2da3ba6243 Fixed SDL include
git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@415 0420edf4-82e4-42fc-9478-35b55e6d67a3
2013-08-21 14:26:14 +00:00