krzys-h
073191d1ea
Small CPathManager refactoring
2018-05-16 13:28:06 +02:00
José Robson Mariano Alves
dbd1f601da
Translation to Brazilian Portuguese
2018-05-15 18:31:41 -03:00
José Robson Mariano Alves
2b933264fc
Translation to Brazilian Portuguese
2018-05-15 16:07:03 -03:00
krzys_h
db90fcd2ef
Merge pull request #1118 from nextghost/dev
...
Czech translation
2018-04-24 14:17:23 +02:00
AbigailBuccaneer
ea64edaa0b
Compile with -Wmissing-declarations
...
-Wmissing-declarations enforces that every function (except for static
functions) must be declared separately before it's defined. This
essentially enforces that every function must be either static, or
declared in a header elsewhere.
This helps the optimizer, as it can do a better job of inlining if it
knows that a function won't be used outside of a given file. It also
helps -Wunused-function (which is enabled by -Wall) find more unused
functions.
Note that Clang spells this option -Wmissing-prototypes, which
confusingly is the name of a related but different warning option under
GCC.
2018-04-21 16:49:27 +01:00
AbigailBuccaneer
4119e669d1
Remove central tracking of SystemTimeStamp
...
SystemTimeStamp used to be an opaque class, as it was provided by
`system_{linux/other/windows}.h`. Because of this, code dealt in
SystemTimeStamp pointers, and getting the current timestamp required a
memory allocation. Now SystemTimeStamp is just a
`std::chrono::time_point`, we can make the code cleaner and faster by
just directly keeping SystemTimeStamp instead of pointers around.
2018-04-20 09:57:10 +01:00
AbigailBuccaneer
2a003a27b1
Use C++11 threads, mutexes and condition variables
2018-04-20 09:56:57 +01:00
krzys-h
1c2bdc9cab
Update license headers
2018-04-20 02:08:50 +02:00
Martin Doucha
81b4d0e28b
Add Czech translation
2018-02-24 20:39:29 +01:00
tomangelo2
d63ed865f4
Added QuickSave/QuickLoad feature #929
...
Also rearranged a bit speed control buttons to make some space for it
F5 - QuickSave
F6 - lower speed (current/2)
F7 - reset speed
F8 - higher speed (current*2)
F9 - QuickLoad
2017-06-11 17:50:21 +02:00
Abigail
f4614658cf
Fix -Wundefined-var-template warning ( #963 )
...
This avoids specializing CSingleton<T>::m_instance for each type, and
instead just defines it once in the header. This is allowed by the
standard, multiple definitions are merged in the same way that inline
functions are.
2017-05-29 20:46:11 +02:00
krzys-h
02aa281d30
Remove unnecessary m_instance declarations
...
They don't do anything at all in gcc and clang, but cause compile errors in MSVC
see #955
2017-05-24 14:00:34 +02:00
krzys-h
08d87fa975
Make initial scoreboard values editable
2017-05-24 12:39:05 +02:00
Abigail
11d950221b
Fix all compiler warnings and enable -Werror ( #955 )
...
This removes all compilation warnings on:
* g++ 4.7.4, 4.8.5, 4.9.4, 5.4.1, 6.3.0, 7.0.1-svn246759
* clang++ 3.9.1, 4.0.0, 5.0.0-svn303007
2017-05-22 11:10:35 +02:00
krzys-h
88c6818cfd
Fix code style issues
2016-11-26 13:48:12 +01:00
krzys-h
0ecdee08cc
Merge branch 'dev-async-music-load' (PR #801 )
2016-08-09 19:20:46 +02:00
krzys-h
c03d8beb8b
Import documentation from old dev wiki
...
I also updated all outdated information I could find, please tell me if I missed something
Model format documentation needs an update
2016-08-05 17:04:16 +02:00
krzys-h
5fea22ff03
Moved performance counters to a separate class
2016-07-24 16:18:25 +02:00
krzys-h
81b7bcc5bc
Moved system modules from app/ to common/system/
2016-07-24 14:38:49 +02:00
krzys-h
29f0631a2c
Asynchronous sound/music loading
...
This improves the loading time a lot. Time from starting the app to opening game window decreased by almost 5 seconds (it's almost instant now). Mission loading times are significantly better too. As a bonus, the playmusic() CBot function doesn't hang the game if you don't preload the files with CacheAudio in scene file.
2016-07-10 14:56:34 +02:00
krzys-h
fb3245977c
Added logging to CPauseManager
2016-07-04 17:01:48 +02:00
krzys-h
58815059ea
Added warnings about planned changes to EndMisisonTake ( #759 )
2016-07-04 16:30:22 +02:00
Krzysztof Dermont
2168b57cac
Remove part of boost::filesystem usage.
2016-06-09 19:30:08 +02:00
krzys-h
646e5104f6
Some CCamera cleanup and docs
2016-05-28 18:44:38 +02:00
krzys-h
2dd7ba7e9b
Added camera keybindings ( #653 )
2016-05-28 15:41:01 +02:00
krzys-h
ebc2e6e26c
Added camera joystick bindings ( #653 )
2016-05-28 13:50:41 +02:00
krzys-h
942f746a21
Removed CAM_TYPE_DIALOG
2016-05-28 12:50:32 +02:00
krzys-h
bd72086704
Unified all camera inputs
...
Until now each camera type had separate code for handling camera input, and some new features were missing in some of them.
The camera controls are as follows:
* RMB+mouse and numpad keys - horizontal/vertical rotation
* mouse wheel and +/- keys - zoom (in free camera - move eye up/down)
* CTRL or MMB + horizontal controls - pan left/right
* CTRL or MMB + zoom controls - move lookat up/down (free camera only)
2016-05-27 22:38:44 +02:00
krzys-h
4de9d25f04
Man, those compile errors...
2016-04-09 18:58:34 +02:00
krzys-h
139592bc00
Proper l10n for date/time
2016-04-09 18:23:57 +02:00
krzys-h
c94ebb45e7
Moved pathman from common/ to app/
2016-04-04 22:28:08 +02:00
krzys-h
02633e32c3
Merge branch 'master' into dev
2016-04-02 23:55:32 +02:00
krzys-h
37d72351be
Fixed log file creation crash ( #755 )
2016-04-02 23:53:07 +02:00
krzys-h
39b364fa77
Fixed compilation with disabled sound support, closes #748
2016-03-30 22:22:22 +02:00
Didier Raboud
a06035ecb8
Fix occured/occurred spelling error
2016-03-30 13:40:26 +02:00
krzys-h
64fef98bd7
Merge branch 'dev-0.1.8' into dev
2016-03-29 16:16:20 +02:00
Tomasz Kapuściński
32d1994c98
Added VSync setting and corrected default framebuffer MSAA setting
2016-03-29 13:38:53 +02:00
krzys-h
6585ee9ae8
Refactor some references to CRobotMain from CEngine
2016-03-26 18:55:39 +01:00
krzys-h
640c0297ef
Replaced CConfigFile::GetInstancePointer() with GetConfigFile()
2016-03-26 18:34:26 +01:00
Tomasz Kapuściński
3eadb0c6f7
Added experimental MSAA for default framebuffer
...
To enable, add MSAA=4 to [Experimental] in colobot.ini and disable standard MSAA
2016-03-14 20:14:16 +01:00
krzys-h
438bc477d1
Removed low CPU mode
2016-03-13 14:52:07 +01:00
Tomasz Kapuściński
d39604cb0e
Small change in context profile selection and more info about graphics devices in help switch
2016-02-27 15:25:23 +01:00
Tomasz Kapuściński
8414ae794d
Corrected a mistake in -glprofile argument parsing
2016-02-17 23:04:34 +01:00
krzys-h
999b2b85a4
Prevent possible crashes related to not releasing pause
2016-02-16 12:26:52 +01:00
Tomasz Kapuściński
cc973dab6f
Added settings and command line switches to request OpenGL context version and profile
2016-02-15 23:08:56 +01:00
krzys-h
254891d8f1
Save log to file, closes #696
2016-02-13 20:32:26 +01:00
krzys-h
8fb13816bf
One more code style fix
2016-02-13 14:15:11 +01:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11:30 +01:00
krzys-h
55412842df
Fixed some code style warnings
2016-02-13 13:46:56 +01:00
Krzysztof Dermont
8a0cda1c2a
Fix issue #648
...
Should be proper fix
2016-02-10 17:06:02 +01:00
krzys-h
e0fcaf3a64
Disable logging to file
...
This causes the log to not be displayed in console, and the commit that was supposed to fix that was reverted because it fails to compile on our build server for some reason
2016-01-30 16:51:12 +01:00
krzys-h
76c43cddb2
Rename CSoundInterface::AddMusicFiles to CacheCommonMusic
2016-01-24 21:31:45 +01:00
krzys-h
5f01153c5f
Fixed joystick switch crash; small bugfix to joystick UI
2016-01-24 20:48:07 +01:00
krzys-h
40352be5cc
Add language switcher to the settings UI, closes #506
2016-01-24 16:03:24 +01:00
krzys-h
2e17712b5d
Added official build info in crash screen
2015-12-19 22:10:15 +01:00
krzys-h
e20f5f6983
Allow on-crash save during in-simulation config, closes #685
2015-12-19 22:06:16 +01:00
Tomasz Kapuściński
aa2e14219e
Added warnings and error messages to graphics devices regarding unsupported OpenGL version
2015-12-18 21:04:16 +01:00
Piotr Dziwinski
d11ebc891c
Bring to zero some types of issues reported by colobot-lint
2015-10-04 00:09:10 +02:00
krzys-h
3815ef0bd6
Refactored CPauseManager (again)
2015-10-01 18:55:41 +02:00
krzys-h
6e1504d7a5
Further cleanup USE_SDL_MAIN
2015-09-29 22:39:34 +02:00
Piotr Dziwinski
61a3ba2800
Fix undefined function colobot-lint issues
2015-09-29 21:44:24 +02:00
krzys-h
7a6e669a37
Show detailed error info when opening haptic device fails
2015-09-27 18:54:02 +02:00
Piotr Dziwinski
66ce745be0
Introduce forward declarations as suggested by colobot-lint
2015-09-27 16:28:14 +02:00
krzys-h
6a6025f557
Implemented force feedback
2015-09-27 00:34:03 +02:00
krzys-h
fd07589ebb
Separated config.h and version.h
...
This prevents unnecessary recompilation of some files when version number changes
2015-09-26 21:12:12 +02:00
krzys-h
4dc7a301eb
Always reverse forward/backward and up/down axes on a joypad
2015-09-26 21:03:17 +02:00
krzys-h
07df35ca01
Refactored mouse wheel
2015-09-25 22:54:48 +02:00
krzys-h
a0034f8000
Finalized SDL2 migration
2015-09-25 21:26:49 +02:00
krzys-h
e965414d34
Rewritten text input to SDL2
2015-09-25 19:49:50 +02:00
krzys-h
7839dce624
Fixed duplicate resolutions appearing on the list
2015-09-25 11:16:09 +02:00
krzys-h
dfa06dafcf
Refactored window resize
2015-09-25 11:11:35 +02:00
krzys-h
53e4470dbf
Started SDL2 migration
2015-09-24 21:09:46 +02:00
krzys-h
e956311626
Moved free camera controls to numpad; added 'camtype %d', 'camspeed %f', 'freecam'
2015-09-04 19:04:42 +02:00
krzys-h
d97042e252
Fixed possible problems if another crash occurs while saving crash state
2015-09-01 16:17:23 +02:00
krzys-h
e015d9f1c3
Don't allow saving if crashed during loading
2015-09-01 16:15:59 +02:00
krzys-h
c3d7876a5c
Made CPauseManager not a singleton
2015-08-31 22:05:21 +02:00
krzys-h
75d18ced05
Fixed #596
2015-08-31 21:57:46 +02:00
krzys-h
ff17961584
Refactored CPauseManager
2015-08-31 21:47:55 +02:00
krzys-h
1519145c4c
Added information when no exception object is returned from std::current_exception
2015-08-25 14:01:10 +02:00
krzys-h
551710646b
Revert "Fix reporting unhandled exceptions in MSVC"
...
This reverts commit 4d3a0b6602
.
Conflicts:
src/app/main.cpp
2015-08-25 13:32:58 +02:00
krzys-h
8ff6fadb75
Unlocked free window resolution change
2015-08-24 19:56:50 +02:00
krzys-h
d9b680bdcf
Removed Windows restart on resolution change workaround
2015-08-24 19:47:48 +02:00
Piotr Dziwinski
b93f610930
Fix license header in all files
2015-08-22 16:40:02 +02:00
krzys-h
9d6543a947
Close game window on error (mentioned in #570 )
...
Otherwise, the error doesn't show up and the game appears to freeze in fullscreen mode
2015-08-19 11:14:25 +02:00
Piotr Dziwinski
a63a959dbe
Apply clang-modernize -use-nullptr
2015-08-17 22:40:52 +02:00
Piotr Dziwinski
ba3284b8b8
Apply clang-modernize -add-override
2015-08-17 22:12:09 +02:00
krzys-h
7e028977bd
Implemented emergency save on crash, closes #572
2015-08-17 20:56:42 +02:00
Piotr Dziwinski
2289d69735
Replace NULL -> nullptr
2015-08-16 12:43:42 +02:00
Piotr Dziwinski
4d3a0b6602
Fix reporting unhandled exceptions in MSVC
...
For some reason set_terminate() doesn't work with MSVC2013
2015-08-16 00:48:15 +02:00
krzys-h
0c670e7699
Don't demangle the exception class name on MSVC
2015-08-16 00:44:36 +02:00
krzys-h
f21025b526
User-friendly abort error messages
2015-08-16 00:44:36 +02:00
Piotr Dziwinski
d703eb7165
Compile fixes for MSVC2013
2015-08-16 00:39:08 +02:00
krzys-h
9a15db1bea
Split global.h
2015-08-15 14:02:07 +02:00
krzys-h
02b76e5aba
Workaround for too fast calling of m_app->Render
2015-08-14 00:10:07 +02:00
Piotr Dziwinski
26e4ec0ae2
Add more missing includes and forward declarations
2015-08-13 22:49:05 +02:00
krzys-h
ff957afefc
Moved files not directly related to CObject into src/level/ directory
2015-08-13 11:47:32 +02:00
Piotr Dziwinski
8ad3b4e552
Fix Clang compilation
2015-08-10 22:40:37 +02:00
krzys-h
4964e35625
Fixed gun targetting with mouse
2015-08-09 23:04:24 +02:00
krzys-h
6b4610e808
Improved stats display
2015-08-09 15:20:38 +02:00
krzys-h
30589f3e79
Fixed -runscene
2015-08-07 22:37:56 +02:00