Piotr Dziwinski
0c9e745213
Add proper initializations in remaining graphics classes
2015-08-06 09:33:27 +02:00
Piotr Dziwinski
c339838cd2
Add proper initializations in CWater, CTerrain and CCloud
...
Also make associated structs private
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
d7bc28a595
Add proper initializations in CPlanet and refactor planet mode
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
111d279de5
Add proper initializations in OpenGL classes
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
91658c7df0
Add proper initializations in basic graphics structures
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
7097ec38e3
Fix very subtle memory access bug
...
Some CScreen classes have functions which call ChangePhase() on
CRobotMain, which in turn calls ChangePhase() on CMainDialog, which in
turn deletes current CScreen object :(.
So the fix is to keep all CScreen objects created all the time and only
keep pointer to the currently active object.
This also makes it easy to clean up dependencies between CScreen classes
and get rid of all these ugly static variables and functions.
2015-08-06 08:18:22 +02:00
Piotr Dziwinski
c38ecd67ea
Fix crash in glDeleteTexture
2015-08-05 23:06:54 +02:00
krzys-h
95a438bcc6
Fixed cheat console and particles during loading
2015-08-05 22:54:13 +02:00
krzys-h
86caf4f098
Fixed a bug in 47d79c9977
2015-08-05 22:16:52 +02:00
Piotr Dziwinski
9ccb39ce66
Fix Clang compilation
2015-08-05 22:02:59 +02:00
krzys-h
2ef6d6caef
Updated submodule
2015-08-05 21:44:18 +02:00
Piotr Dziwinski
a9a643eea4
Add virtual destructor to CScreen to fix memory corruption issue
2015-08-05 20:59:49 +02:00
krzys-h
47d79c9977
Added #Include support in level files
2015-08-05 19:27:26 +02:00
krzys-h
6ad63e0f08
Updated submodule
2015-08-05 18:28:34 +02:00
Piotr Dziwinski
806ffdaf36
Fix segfault in unit tests
2015-08-05 10:27:39 +02:00
krzys-h
c62e583c12
Fixed log message
2015-08-04 23:34:39 +02:00
krzys-h
5e0cff29dc
Removed GetChapPassed from maindialog.h
2015-08-04 23:32:44 +02:00
krzys-h
54254e2158
Split CMainDialog
2015-08-04 23:29:18 +02:00
Piotr Dziwinski
c2387b4b56
Class naming fix
2015-08-04 20:58:03 +02:00
Piotr Dziwinski
18f9bfb575
Make saving screenshot thread- and exception-safe
...
* introduce ResourceOwningThread wrapper for safely passing resources
to new threads
* make CEventQueue thread-safe
* start screenshot saving thread using ResourceOwningThread
* change direct call at end of writing screenshot to thread-safe
event communication
2015-08-04 20:37:15 +02:00
MrSimbax
5005e760b9
Fix interrupting Me building when he's not selected ( fixes #548 )
2015-08-04 20:31:17 +02:00
krzys-h
3f48e4699d
Moved window position and font size storage from CRobotMain to CSettings
2015-08-04 13:09:34 +02:00
krzys-h
a4f12f1b11
Removed unused m_access* variables
2015-08-04 12:50:49 +02:00
krzys-h
4b271cee2d
Moved settings out of CMainDialog into a separate class
...
Also fixed some problems with resolution list selection after starting game
2015-08-04 12:46:54 +02:00
krzys-h
ea7bfdefda
Moved scene to load out of CMainDialog
2015-08-04 10:56:49 +02:00
krzys-h
fc8d8cb9d4
Moved saved scene loading to CPlayerProfile
2015-08-04 09:55:39 +02:00
krzys-h
72210d523f
Fixed this.orientation values outside of 0-360 range
2015-08-03 23:10:24 +02:00
krzys-h
13ef6e5498
Fixed position & direction when copying object from F12 menu
2015-08-03 22:26:22 +02:00
krzys-h
522c54afc3
Possible fix for MXE builds
2015-08-03 22:12:41 +02:00
krzys-h
6ea98ed995
Fixed screenshot image lag on old GPUs that have problems with not power-of-2 textures ( #546 )
2015-08-03 22:06:27 +02:00
krzys-h
04960035c1
Save screenshot image in a separate background thread ( #546 )
2015-08-03 21:40:30 +02:00
krzys-h
5e4a423bf0
Cleaned up "textures/"+something, fixed more possible occurences of #531
2015-08-03 20:55:33 +02:00
krzys-h
1e38edcec7
Fixed InterfaceGlint and InterfaceRain using the same config value name
2015-08-03 20:40:27 +02:00
krzys-h
45d6091a74
Fixed program from object.factory() being kept in BotFactory for every next manual operation
2015-08-03 20:33:45 +02:00
krzys-h
4bdadc8cc8
Updated help file paths
2015-08-03 20:23:35 +02:00
krzys-h
794d1f3cbe
Fixed "this" ( #547 )
2015-08-03 19:56:35 +02:00
Piotr Dziwinski
11b0398c03
Include refactoring
...
* reordered includes according to correct style
* removed some unnecessary includes
2015-08-02 17:49:07 +02:00
Piotr Dziwinski
7d8b56d9ab
More style fixes
2015-08-02 12:06:14 +02:00
Piotr Dziwinski
3b585d9f51
Some style and whitespace fixes
2015-08-02 11:36:36 +02:00
krzys-h
60ae9b1959
Fixed ExchangePost info saving
2015-08-01 21:19:47 +02:00
MrSimbax
a18d195cfd
Add an ability to cancel making a building ( fixes #509 )
2015-07-30 17:47:26 +02:00
krzys-h
119bc62a7c
Fixed #542
2015-07-29 22:46:52 +02:00
krzys-h
6818e32150
Fixed shadow mapping disable when not supported ( #522 )
2015-07-29 22:30:44 +02:00
krzys-h
ccd55a4319
Fixed reversed Arrow colors ( #537 )
...
A major derp during TraveColor refactoring :P I hope I didn't break anything else
2015-07-29 18:25:36 +02:00
krzys-h
1bc0c891b0
Fixed early profile creation ( #538 )
2015-07-29 18:17:28 +02:00
krzys-h
11b3615df6
Fixed #541
...
I broke it in 86f473ac16
2015-07-29 11:53:54 +02:00
krzys_h
62f75892ae
Merge pull request #544 from vieux/this_not_type
...
fix type highlighting in the CBOT editor
2015-07-29 09:53:34 +02:00
krzys-h
ab6a8eba2b
Possible fix to #482
2015-07-29 09:41:25 +02:00
Victor Vieux
7c421b7151
fix highlighting
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-07-29 00:37:56 -07:00
Victor Vieux
38c64940a5
this is not a type
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-07-29 00:37:29 -07:00