Krzysztof Dermont
c780148b77
Fix crash related to TTF and PHYSFS
...
TTF fonts will be loaded to memory instead of file pointers
Added new class CSDLMemoryWrapper that loads data from PHYSFS into memory block
and closes file after. This closes issues #519 , #708 and #619
2016-02-11 16:12:16 +01:00
Tomasz Kapuściński
b6faadca03
Rewritten OpenGL 2.1 engine's two-sided lighting
2016-02-11 15:04:07 +01:00
Tomasz Kapuściński
32b480b226
Rewritten lighting in OpenGL 2.1 engine
2016-02-10 23:38:49 +01:00
Tomasz Kapuściński
898001e065
Changed CGL33Device requirement to OpenGL 3.2
2016-02-10 22:50:40 +01:00
Tomasz Kapuściński
447b466d6e
Optimizations in graphics engines
2016-02-10 21:40:41 +01:00
Krzysztof Dermont
8a0cda1c2a
Fix issue #648
...
Should be proper fix
2016-02-10 17:06:02 +01:00
Krzysztof Dermont
12e3724319
Implement issue #606
...
Add button to open SatCom in main menu
2016-02-10 17:04:26 +01:00
Krzysztof Dermont
a611ef3d50
Fix issue #711
...
Update text input handling based on focus event
2016-02-10 17:03:37 +01:00
tomangelo2
1fc9186aaf
Fixes for issue #648 and #631
2016-02-09 20:05:04 +01:00
krzys-h
bdf99f3de5
Fixed SatCom music not starting with immediat SatCom enabled
2016-02-05 20:38:03 +01:00
Tomasz Kapuściński
91f897057e
Another fix for visibility distance
2016-01-31 01:07:34 +01:00
Tomasz Kapuściński
a924cf6a75
Fix for fog distance
2016-01-31 00:38:24 +01:00
Tomasz Kapuściński
15c5e69199
Fix for visibility distance setting
2016-01-30 23:58:26 +01:00
Tomasz Kapuściński
12067c1b9f
Optimized light updating in CGLDevice
2016-01-30 18:51:13 +01:00
krzys-h
f6db624d00
Fix occasional segfault in drop zone after object destruction
2016-01-30 18:01:38 +01:00
krzys-h
6bdebcf8e4
Fix delete() CBot command
2016-01-30 17:42:35 +01:00
Tomasz Kapuściński
9db943b820
Optimized matrix operations in CGLDevice
2016-01-30 17:41:11 +01:00
krzys-h
9749419b87
Fixed LevelController
2016-01-30 17:24:47 +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
Tomasz Kapuściński
05e19f47c3
Corrected MSAA support detection
2016-01-29 12:02:36 +01:00
krzys-h
f3094312b2
Fix startup crash with disabled autosave, closes #705
2016-01-28 20:36:55 +01:00
krzys-h
223d17843e
Fixed NuclearPlant being available without research, closes #662
2016-01-24 22:18:04 +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
7a521fbc90
Joystick configuration, closes #499
...
Not yet tested as I don't have a joystick currently with me, but should work fine
2016-01-24 17:36:25 +01:00
krzys-h
40352be5cc
Add language switcher to the settings UI, closes #506
2016-01-24 16:03:24 +01:00
krzys-h
6d8a5bab31
Removed system mouse option
...
Not really needed, as it is an SDL cursor not system cursor, which is no better than ours
2016-01-24 15:24:59 +01:00
krzys-h
b96305060b
Fix colobot-lint warnings
2016-01-23 21:59:02 +01:00
krzys-h
84521ef08a
Fixed CBotClass::FreeLock crash on some compilers
2016-01-23 21:33:58 +01:00
krzys-h
9bece23ede
Fixed clang build
2016-01-23 21:24:42 +01:00
krzys-h
9ff978155c
Fix crash with CBot string functions out of range ( closes #704 )
2016-01-23 21:07:19 +01:00
krzys-h
048534e89d
Fixed some errors reported by colobot-lint
2016-01-23 20:58:03 +01:00
krzys-h
344cda4ae6
Add missing override keywords
2016-01-23 20:49:01 +01:00
Piotr Dziwinski
2af89ab378
Fix libc++ build
2016-01-23 20:30:43 +00:00
krzys-h
089c1ff00c
Fixed crash in CBotStack::BreakReturn
2016-01-15 19:59:03 +01:00
krzys-h
04e9e8768d
Removed unused CRobotMain members
2016-01-15 16:55:56 +01:00
krzys-h
70555d984c
Small CBotTwoOpExpr cleanup
2016-01-05 13:04:15 +01:00
krzys-h
d63773d89d
Refactored EOX
2015-12-31 18:57:11 +01:00
krzys-h
a70381e1c8
Refactored CBotVarClass instance list to std::set
2015-12-31 16:54:13 +01:00
krzys-h
dcc29442bd
Refactor public classes list to std::set
2015-12-31 16:30:54 +01:00
krzys-h
48ab72d056
CBotClass::Lock() refactoring
2015-12-31 16:11:49 +01:00
krzys-h
2245863fcd
Some more random refactoring in CBot
2015-12-31 16:11:35 +01:00
krzys-h
fa92605225
Renamed some CBotInstr classes
2015-12-31 14:44:19 +01:00
krzys-h
10b201b9e6
Description of CBot instructions
2015-12-30 19:13:32 +01:00
krzys-h
e3c53f9912
CBot compiled instruction graphs; some code cleanup
2015-12-27 16:51:57 +01:00
krzys-h
3b4ccc3535
Improvements to auto-indent ( #698 )
2015-12-26 20:16:47 +01:00
krzys-h
500bd1753f
Changed array initialization to use {...} ( #698 )
2015-12-26 20:05:00 +01:00
krzys-h
ef91fb8e9d
Fixed commandline interpreter
2015-12-26 14:37:36 +01:00
krzys-h
07a4d6a16b
CBot namespace
2015-12-26 14:29:10 +01:00
krzys-h
6b959a5606
Mostly finished CBotStack docs
2015-12-25 22:03:23 +01:00
krzys-h
9b3b701785
More CBotStack docs
2015-12-25 20:47:30 +01:00
krzys-h
c72cfa234b
Started docs of CBotStack; random refactorings
2015-12-25 19:48:31 +01:00
krzys-h
40b7d986aa
CBotVar::GetTypeMode enum
2015-12-25 19:16:54 +01:00
krzys-h
0807b75d4b
Fixed object:: with other types ( #207 )
2015-12-25 15:13:52 +01:00
krzys-h
5443006979
Refactor public function list
2015-12-24 15:07:40 +01:00
krzys-h
921c266311
Some random refactoring
2015-12-24 14:52:17 +01:00
krzys-h
ff081aff49
Made CBotExternalCallList combatible with class calls
2015-12-24 12:57:37 +01:00
krzys-h
ae544c71ae
Made CBotExternalCallList not static
2015-12-24 12:36:09 +01:00
krzys-h
8e01a208c1
More extensible external call interface
2015-12-24 11:57:34 +01:00
krzys-h
3170395576
CBotCall refactoring
2015-12-24 00:41:44 +01:00
Tomasz Kapuściński
00221c9a3f
Optimized DrawPrimitives() in CGL33Device
2015-12-24 00:21:57 +01:00
Tomasz Kapuściński
d944a55905
Optimized DrawPrimitives() in CGL21Device
2015-12-24 00:06:58 +01:00
Tomasz Kapuściński
f2a295348c
Optimized DrawPrimitives() in CGLDevice
2015-12-23 23:49:00 +01:00
krzys-h
3008e18fc6
Extracted most of linked list logic into a template class
2015-12-23 23:34:11 +01:00
Tomasz Kapuściński
d82b5ef746
Added DrawPrimitives() for drawing multiple primitives (not optimized for now)
2015-12-23 23:23:10 +01:00
krzys-h
8437a9bdd2
CBot testing framework; fixed a few bugs
2015-12-23 20:39:56 +01:00
krzys-h
d577e7f41b
Tests for CBotToken
2015-12-23 18:44:14 +01:00
krzys-h
30fea5893b
Fixed crash from previous commit (oops again)
2015-12-23 17:50:10 +01:00
krzys-h
8fa5b208c2
Compile fix after previous commit; fix MSVC errors; added missing license headers
2015-12-23 17:37:26 +01:00
krzys-h
6482001b9b
CBotToken docs
2015-12-23 17:28:21 +01:00
krzys-h
6ef14617a0
More random CBotToken refactoring, removed CBotToken::Delete
2015-12-23 16:46:41 +01:00
krzys-h
fbdc071659
Some random CBotProgram and CBotToken refactoring
2015-12-23 16:11:03 +01:00
krzys-h
9b4a6e0131
TokenType enum
2015-12-23 14:05:29 +01:00
krzys-h
c9e0249008
Better CBot class destructor parsing ( #257 )
...
The previous one broke the NOT (~) operation parsing
This reverts commit 7c8a31c074
.
2015-12-23 13:04:46 +01:00
krzys-h
45a433525f
CBotClass usage examples
2015-12-22 16:32:51 +01:00
krzys-h
214e95c0b9
Fixed ** CBot operator
2015-12-22 16:06:55 +01:00
krzys-h
33ac246297
Documentation for CBotVar and all subclasses
2015-12-22 15:59:57 +01:00
krzys-h
2519825104
CBotVar::ProtectionLevel enum
2015-12-21 23:07:40 +01:00
krzys-h
c8498740f2
Minor changes to CBotProgram docs
2015-12-21 21:46:50 +01:00
krzys-h
eedf8dacea
Documentation for CBotProgram; some CBotError refactoring
2015-12-21 21:35:20 +01:00
krzys-h
6fee1ee12b
Docs for CBotTypResult.h and CBotEnums.h
2015-12-21 17:54:55 +01:00
krzys-h
76c04e10d5
Removed some unused CBot code
2015-12-21 16:46:44 +01:00
krzys-h
73f8bd5490
Made CBot errors an enum
2015-12-20 19:16:01 +01:00
krzys-h
5db1254dd8
Unified CBot error naming
2015-12-20 19:01:03 +01:00
krzys-h
51644369cb
Moved standard math and file functions into CBot library
2015-12-20 18:36:20 +01:00
Tomasz Kapuściński
22e963e2c4
Added information about graphics card to error message
2015-12-20 17:34:55 +01:00
krzys-h
9ec61d93e5
Refactored CBotString and const char* to std::string in CBot engine
...
A lot of changes, so it needs lots of testing
2015-12-20 16:19:10 +01:00
krzys-h
87a34ba1ff
Refactor CBotString::LoadString
2015-12-20 15:06:35 +01:00
krzys-h
3eeab0f9b7
Removed CBotStringArray
2015-12-20 14:49:30 +01:00
krzys-h
6832c91496
Fixed #695
2015-12-20 14:28:38 +01:00
krzys-h
5e23426b53
Refactored CBotString to use std::string and CBotStringArray to use std::vector
2015-12-20 14:24:49 +01:00
krzys-h
52a18de5c0
Fixed failed assertion when damaging LRV or Scribbler, closes #665
2015-12-19 22:19:13 +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
krzys-h
1dd230aaaf
Fixed incombatibility with old save files, closes #686
2015-12-19 22:02:24 +01:00
krzys-h
964d3574fd
Fixed treating 'bool' as 'int' in CBot engine
...
Appears to fix #199 - further testing required
2015-12-19 21:20:41 +01:00
krzys-h
95eee3a340
Merge pull request #690 from Grunaka/dev
...
Clean CBot Interface
2015-12-19 14:14:41 +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
Grunaka
30c3d03141
Remove header files from to the list of .cpp files in CBot CMakeLists.txt.
2015-12-06 16:30:13 +01:00
Grunaka
f45d657ab0
Add comments delete by commit 1a6b5ded64
.
2015-12-06 15:42:09 +01:00
Grunaka
aa3f8c0cd1
Add missing include in CBot.h.
2015-12-06 15:37:18 +01:00
Grunaka
0f491ce433
Add commments in CBot.h
2015-12-06 15:05:22 +01:00
Grunaka
f9ab37fd14
Add comment deleted by commit 573e1152e3
.
2015-12-06 14:49:27 +01:00
Grunaka
17704c4d54
Delete resource.h.
2015-12-06 14:46:38 +01:00
Grunaka
2048ecb148
Delete CBot.cpp.
2015-12-06 14:45:31 +01:00
Grunaka
de5a57f793
Change CBot default include directory. Make all include directive absolute.
2015-12-01 23:25:36 +01:00
Grunaka
fa9dc0dace
Start cleaning of files CBotFileUtils.h and CBotFileUtils.cpp. Pass CBotTypResult parameter as reference.
2015-12-01 23:25:36 +01:00
Grunaka
5c7a665639
Add CBot.h, CBotEnums.h and CBotDefines.h in CMakeLists.txt.
2015-12-01 23:25:36 +01:00
Grunaka
4a9afdc525
Move enum from resource.h to CBotEnums.h. Delete file resource.h.
2015-12-01 23:25:36 +01:00
Grunaka
922082b360
Move define from resource.h to CBotDefines.h.
2015-12-01 23:25:36 +01:00
Grunaka
ece0666954
Create new file CBot.h. Included only useful interfaces.
2015-12-01 23:25:36 +01:00
Grunaka
575ff47c82
Cleaning the CBot.h file.
2015-12-01 23:25:36 +01:00
Grunaka
cedaaad459
Deleted file CBot.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
b28e2aec01
Moving some define from CBot.h to CBotDefines.h.
2015-12-01 23:25:36 +01:00
Grunaka
751999064b
Moving global files function from CBotProgram.cpp to CBotFileUtils.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
889c0fbe8e
Split file StringFunctions.cpp into two files StringFunctions.h and StringFunctions.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
1a6b5ded64
Delete CBotDll.h
2015-12-01 23:25:36 +01:00
Grunaka
2f7932ff69
Moving defines from CBotDll.h to CBotDefines.h.
2015-12-01 23:25:36 +01:00
Grunaka
43ac0e35f2
Moving global files function from CBot.cpp to CBotFileUtils.cpp
2015-12-01 23:25:36 +01:00
Grunaka
7b200a0922
Moving global CompileParams, TypeCompatible and TypesCompatibles from CBot.cpp to CBotInstrUtils.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
51f0675e41
Moving macro MAX from CBot.h to CBotTwoOpExpr.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
3b0561056a
Moving CBotTypResult class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
942d7195e4
Moving CBotString class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
67dff4ef65
Moving CBotStringArray class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
ef4e2f08a3
Moving CBotInstr class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
013be673ce
Moving CBotCStack class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
660f17454a
Moving CBotVar class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
2eeab6d4d0
Moving CBotVarClass function from CBotVar.cpp to CBotVarClass.cpp.
2015-12-01 23:25:36 +01:00
Grunaka
a4f14650c6
Moving CBotVarInt class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
44021e91f7
Moving CBotVarFloat class in its own header and source files.
2015-12-01 23:25:36 +01:00
Grunaka
1b3b2ea5a1
Moving CBotVarString class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
ade4aefb0e
Moving CBotVarBoolean class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
c624d65649
Moving CBotVarClass class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
bd20f6303c
Moving CBotVarPointer class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
143eecd791
Moving CBotCallMethode class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
6d340e80ab
Moving CBotDefParam class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
0a1b7da2a8
Moving CBotClass functions into CBotClass.cpp. Moving gloable function used by CBotClass and CBotFunction into CBotUtils.cpp.
2015-12-01 23:25:35 +01:00
Grunaka
4712e0ef6a
Moving CBotFunction class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
70dc6785f2
Moving CBotProgram class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
77d738634c
Moving CBotClass class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
63ab9d7301
Moving CBotVarArray class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
394a49f5aa
Moving CBotCall class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
e54d8f1ebc
Moving CBotStack class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
0373692ea1
Moving CBotInt class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
b01e2180d8
Moving CBotInstArray class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
ede0d03026
Moving CBotListArray class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
8c04d7fc65
Moving CBotIf class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
c0e2201c70
Moving CBotReturn class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
14961dbc57
Moving CBotEmpty class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
17cbae8e68
Moving CBotBoolean class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
ff72d1a77f
Moving CBotFloat class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
13b82b7e8e
Moving CBotIString class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
bbf2e48802
Moving CBotClassInst class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
dc8a6b3273
Moving CBotCondition class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d89fd629a2
Moving CBotLeftExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
4b10358df7
Moving CBotFieldExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d0cfdfb998
Moving CBotIndexExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
3c1296b4b9
Moving CBotExpression class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
d44df45d26
Moving CBotTwoOpExpr class in its own header and source files.
2015-12-01 23:25:35 +01:00
Grunaka
8ee0b7df56
Moving CBotLogicExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
4cd7a7a031
Moving CBotBoolExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
75f5126ddd
Moving CBotParExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
f6cc7d2c9c
Moving CBotExprUnaire class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
8eff62a78c
Moving CBotBlock class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
840da007a9
Moving CBotListInstr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
0216359445
Moving CBotInstrCall class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
631621fb7e
Moving CBotInstrMethode class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
d708be50e7
Moving CBotExprVar class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
5343c15d60
Moving CBotPostIncExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
605b1b244a
Moving CBotPreIncExpr class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a878b0d252
Moving CBotLeftExprVar class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
2f52520421
Moving CBotExprBool class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
27a2c0b55a
Moving CBotExprNull class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
85756b4da1
Moving CBotExprNan class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
d70527db66
Moving CBotNew class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
f8778e8c03
Moving CBotExprNum class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a0c2c90c9c
Moving CBotExprAlpha class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
562752b653
Moving CBotWhile class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
a80245b012
Moving CBotThrow class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
18739d135b
Moving CBotCatch class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
179ca18c58
Moving CBotTry class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
8da5c675a4
Moving CBotBreak class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
6d2fbf3ea4
Moving CBotCase class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
5629bce950
Moving CBotSwitch class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
dd6f6e29c2
Moving CBotListExpression class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
981f41d8a3
Move CBotFor class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
1694776ab6
Move CBotDo class in its own header and source files.
2015-12-01 23:25:34 +01:00
Grunaka
573e1152e3
Moving CBOT enumerated in a separate file called CBotEnum.h
2015-12-01 23:25:34 +01:00
Grunaka
b42c1376e5
Move CBotToken class in its own header and source files.
2015-12-01 23:25:25 +01:00
krzys-h
6492908cef
Added radarall() ( #624 )
2015-11-22 14:10:45 +01:00
krzys-h
8a160961fc
Removed STARTDEBUGDD
2015-11-21 17:33:48 +01:00
krzys-h
0c21631c9c
Updated constants for "catch"
...
* removed compile-time errors since they cannot be caught anyway
* added missing runtime errors
2015-11-21 17:26:56 +01:00
krzys-h
6f91442db1
Removed some more unused strings
2015-11-21 17:10:14 +01:00
krzys-h
9bea0355f0
Removed some unused strings
2015-11-21 16:54:21 +01:00
krzys-h
6590652d9e
Added commandline CBot interpreter (for testing purposes)
2015-11-21 16:31:22 +01:00
krzys-h
7b96ae65cd
Removed unused CBot files
...
Don't even ask what they were doing here. Just don't. :P
2015-11-21 14:52:56 +01:00
krzys-h
1838e7bfde
Removed unused "final" keyword
2015-11-21 14:44:48 +01:00
krzys-h
2ed1494574
Syntax highlighting for "super" keyword, closes #680
2015-11-21 14:00:38 +01:00
melex750
b0dbb11fac
Fixed class declaration change
...
see #540
2015-11-21 13:49:49 +01:00
melex750
2b03ed3a21
Fixed calling not overriden methods in CBot
...
see #540
2015-11-21 13:27:40 +01:00
Piotr Dziwinski
1182dea692
Merge pull request #678
2015-11-10 21:36:29 +00:00
piotrwalkusz1
ce480c1720
Fix #670
2015-11-08 19:03:35 +01:00
Piotr Dziwinski
13f0159705
Fix ambiguous overload resolution
...
One operator+ for CBotString is enough
2015-11-02 22:17:53 +00:00
Piotr Dziwinski
eeea31408b
Fix operator+ semantics in CBotString
2015-11-02 22:11:02 +00:00
Grunaka
6a396e1522
Add unit tests for class CBotString.
...
Add comments in class CBotString.
Change existing comments in class CBotString to be compliant with doxygen.
Add function "const char* CBotString::CStr() const".
Add null pointer check in function "const CBotString& CBotString::operator+=(const CBotString& str)"
Remove functions "CBotString CBotString::Mid(int nFirst, int nCount) const" and "CBotString CBotString::Mid(int nFirst) const" because they were doublons of function "CBotString CBotString::Mid(int nFirst, int lg) const"
2015-11-01 17:03:30 +01:00
Tomasz Kapuściński
1b855f5dc3
Possible fix for issue #667
2015-10-15 17:40:15 +02:00
krzys-h
0aa97fe074
Restored Ceebot-Teen toy sound
2015-10-04 18:13:13 +02: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
883e07ad6a
Fixed mouse scroll on lists going out of range, closes #660
2015-10-01 20:22:52 +02:00
krzys-h
2111c6d177
More CRobotMain cleanup
2015-10-01 20:10:52 +02:00
krzys-h
2c7deea6a9
Removed some unused functions from CRobotMain
2015-10-01 19:37:31 +02:00
krzys-h
b5e98dd6e9
Removed CSettings access through CRobotMain
2015-10-01 19:19:40 +02:00
krzys-h
3815ef0bd6
Refactored CPauseManager (again)
2015-10-01 18:55:41 +02:00
krzys-h
58035f3cd1
Fixed rendering camera overlay color, closes #157
2015-09-30 21:41:00 +02:00
krzys-h
d03ce19fbe
Fixed #639
2015-09-30 20:54:36 +02:00
krzys-h
95f1e3f19a
Fixed water/lava moving and waves ( #659 )
2015-09-30 20:31:09 +02:00
krzys-h
2f0ec3fe75
Fixed lava particle effects ( #659 )
2015-09-30 20:21:25 +02:00
krzys-h
3a7aa4ae9c
Restored CreateSpot code in Teen objects
2015-09-30 18:15:09 +02:00
krzys-h
6e1504d7a5
Further cleanup USE_SDL_MAIN
2015-09-29 22:39:34 +02:00
Victor Vieux
49ee00d90d
fix MacOSX install instruction and compilation
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-09-29 22:39:33 +02:00
Piotr Dziwinski
61a3ba2800
Fix undefined function colobot-lint issues
2015-09-29 21:44:24 +02:00
Piotr Dziwinski
94b3f82988
Fix colobot-lint issues in restored code
2015-09-29 20:55:51 +02:00
krzys-h
2cb2782c9d
Restored old Ceebot-Teen objects
...
In preparations for new programming course
2015-09-28 22:08:59 +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
377a331e2a
Forgot to clean this up
2015-09-26 14:58:43 +02:00
krzys-h
f6823389cc
Fixed displaying joystick button 0 name, closes #646
2015-09-25 23:24:29 +02:00
krzys-h
07df35ca01
Refactored mouse wheel
2015-09-25 22:54:48 +02:00
krzys-h
0c64e62979
Fixed a minor error in event logging
2015-09-25 22:18:44 +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
4062d3d4ef
Fixed #633
2015-09-13 20:43:24 +02:00
krzys-h
7500ab4988
Added code battle spectator mode switch
2015-09-13 15:59:42 +02:00
krzys-h
389aaaf132
Fixed 'invui' disabling too much
2015-09-12 11:51:03 +02:00
krzys-h
21a7f1bced
Made 'invui' work in main menu
2015-09-12 10:35:31 +02:00
krzys-h
38a26e53a9
Possible fix to #628 crash
2015-09-11 18:40:41 +02:00
krzys-h
c9a1bbefbb
Fixed code battle start button becoming visible after closing file selection dialog
2015-09-11 18:38:25 +02:00
krzys-h
48f24fe6cc
Fixed CInterface::SetFocus not recursing into windows, this fixes highlighting of compilation errors in the editor
...
It's not really nice, but at least it works
2015-09-11 18:34:47 +02:00
krzys-h
2792fa2c6c
Fixed mouse cursor scaling (again)
...
How could I even miss the fact that my previous fix is not working at all? :P
2015-09-11 17:54:55 +02:00
krzys-h
e6e38eae7f
Fixed cheat console actiaving multiple times, closes #627
2015-09-10 21:32:25 +02:00
krzys-h
4d40bd6992
Hide completion marks in code battle level list
2015-09-10 20:42:48 +02:00
krzys-h
20105d09ec
Added code battles button to the main menu
2015-09-10 20:20:24 +02:00
krzys-h
74cee19c09
Fixed objects being deselected if not clicked on any object
2015-09-09 20:32:56 +02:00
krzys-h
060db9c069
Fixed save button being always unavailable
2015-09-09 20:24:44 +02:00
krzys-h
09ff821f2c
Fixed code battle start button not disappearing in the editor
2015-09-07 21:45:51 +02:00
krzys-h
0a59f0a907
Fixed a possible bug in CObjectManager::GetObjectByRank (might fix #611 )
2015-09-07 20:38:25 +02:00
krzys-h
b058a6986b
Minor improvments to plane camera
2015-09-06 20:33:04 +02:00
krzys-h
582e3c865f
Allow controlling plane camera with number keys
2015-09-06 20:15:56 +02:00
krzys-h
f6fdec1479
Allow controlling free camera with arrows when no object is selected
2015-09-06 20:09:47 +02:00
krzys-h
883348c6cf
Do not (auto)save code battles
2015-09-06 20:01:59 +02:00
krzys-h
d36fcf4187
New code battle camera behavior
2015-09-06 19:59:26 +02:00
krzys-h
51330dde5e
Added code battle start button; fixed bug with starting code battle
2015-09-06 19:12:00 +02:00
Piotr Dziwinski
cf72693b25
Fix another issue in #621
2015-09-06 16:29:21 +02:00
Piotr Dziwinski
a03911dde6
Compile fix
2015-09-06 16:08:10 +02:00
Piotr Dziwinski
86678d4f7a
Fix for #621
2015-09-06 13:48:41 +02:00
Piotr Dziwinski
44a1f85891
Refactor CRobotMain::DeleteObject -> DestroySelectedObject
2015-09-06 13:23:43 +02:00
Piotr Dziwinski
b1e383f89e
Temporarily revert new tree0 model code
...
* create tree0 using the old model code
* don't install new model files yet in data submodule
2015-09-06 12:12:21 +02:00
krzys-h
5fd1735678
Added option to move camera lookat point in free cam
2015-09-05 20:59:11 +02:00
krzys-h
fb03a497d7
Added command to hide the UI
2015-09-04 19:16:21 +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
Tomasz Kapuściński
658e2ff1be
Possible fix for issue #520
2015-09-02 21:35:43 +02:00
krzys-h
78e4e440b5
Removed cancel button from player selection screen
...
Not really needed, and it had a bug with removing players (it would still go back to the deleted player)
2015-09-01 16:30:05 +02:00
krzys-h
6f38ec1911
Clear player name text field on delete
2015-09-01 16:25:09 +02:00
krzys-h
ec9a38a681
Don't show level completion marks in free games
2015-09-01 16:22:57 +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
89c93c15cd
Fixed crash after removing last program from a robot
2015-09-01 16:10:12 +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
cc7e36968f
Fixed new text in editor not being monospace
2015-08-31 12:21:28 +02:00
krzys-h
2ec5e07080
Possible fix to #608
2015-08-31 12:06:14 +02:00
krzys-h
82e06bfd8e
Fixed wrong program being highlighted after loading ( closes #616 )
2015-08-31 11:37:02 +02:00
Piotr Dziwinski
a47da3fd3f
Whitespace fixes
2015-08-30 22:18:49 +02:00
Piotr Dziwinski
a1d2ca50a8
Fix #619
...
This fixes handling of status codes from PHYSFS functions and seems to
solve crashes like in #619
2015-08-30 22:14:14 +02:00
Piotr Dziwinski
3335be42de
Fix MSVC compilation
...
Forgot to push this the last time
2015-08-30 22:11:30 +02:00
krzys-h
6711154762
Fixed produce() and NewScript not marking programs as loaded from level files ( closes #613 ); refactored NewScript to std::vector and std::string
2015-08-29 16:52:07 +02:00
krzys-h
bd9a56fe7b
Indentation! :/
2015-08-29 16:29:45 +02:00
krzys-h
21b9d5b8cc
Fixed saving object activity state ( #610 )
2015-08-29 16:28:10 +02:00
Piotr Dziwinski
a8eb7499ac
Fix #607
2015-08-29 10:49:04 +02:00
krzys-h
934d97a801
Fixed #581 for aliens
2015-08-25 17:25:53 +02:00
krzys-h
43901aa62a
Fixed objects being able to move while executing tasks, closes #603
2015-08-25 17:21:25 +02:00
krzys-h
5eae234b83
Fixed EndMissionDelay win=-1 not working, closes #592
2015-08-25 17:17:11 +02:00
krzys-h
48481718e6
Restored astronaut damage multiplier, closes #578
2015-08-25 17:03:18 +02:00
krzys-h
fe44e617a8
Fixed selection markers not disappearing when moving gun away
2015-08-25 16:57:10 +02:00
krzys-h
8b7bd663b9
Fixed shooters detecting all objects as friendly, closes #581
2015-08-25 16:29:26 +02:00
krzys-h
d4b431adaa
Recalculate camera projection matrix after aspect ratio change
2015-08-25 16:18:01 +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
65d26733fa
Fixed Derrick output direction, closes #605
...
I won't even ask who designed it like that, okay?
2015-08-25 12:37:55 +02:00
krzys-h
d9c8a7ed9b
Fixed MXE builds, 2nd try
2015-08-25 12:18:15 +02:00
krzys-h
f206b49106
Fixed MXE builds
2015-08-25 12:01:22 +02:00
krzys-h
d287af159d
Support for #rrggbbaa syntax for colors (mentioned in #591 )
2015-08-25 11:53:56 +02:00
krzys-h
db099bade4
Legacy 0-255 color support in level files, closes #591
...
Thanks @attila123
2015-08-25 11:41:01 +02:00
krzys-h
00ae6c32f1
Fixed CBot scripts in SatCom not being sometimes colorized
...
This is because in some places \c; and \s; are reversed
2015-08-25 11:32:15 +02:00
krzys-h
06e10a515e
Fixed crash when loading SatCom files with both images and code, closes #587
2015-08-25 11:22:35 +02:00
krzys-h
d8372510b8
Don't allow buildings to work before they are built, closes #582
2015-08-25 10:57:36 +02:00
krzys-h
270c77da5b
Fixed memory corruption in produce(), closes #600
2015-08-25 10:49:59 +02:00
krzys-h
b9e7143734
Fixed PowerCaptor not recharging transported objects, closes #594
2015-08-25 10:32:50 +02:00
krzys-h
5a29bee3b4
Fixed RepairCenter repairing itself, closes #579 and #589
2015-08-25 10:27:14 +02:00
krzys-h
844e7343e0
Possible fix to #601
2015-08-24 23:19:02 +02:00
krzys-h
07141f6d90
Fixed wrong energy level in CBot (mentioned in #601 )
2015-08-24 21:14:19 +02:00
krzys-h
6ed83bb63f
Fixed Shielder not being destructible by OrgaMatter even when the shield is not active, closes #597
2015-08-24 21:12:06 +02:00
krzys-h
79d796754a
Fixed Shielder shutdown animation, closes #595
2015-08-24 20:55:21 +02:00
krzys-h
2722e72afb
Fixed Destroyer destroying itself, closes #599
2015-08-24 20:27:57 +02:00
krzys-h
f78f4854b4
Fixed failing assertion when turning objects into ruins, closes #598
2015-08-24 20:22:08 +02:00
krzys-h
39d2236be6
Fixed %lvl% in saved games, closes #586
2015-08-24 20:08:08 +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
krzys-h
b5bd1b2d74
Destroy static buffers after resolution change
...
Under windows, changing the video mode causes SDL to destroy and recreate the OpenGL context, which invalidates all current static buffers.
It works on Linux because the actual SDL implementation here differs.
See http://sdl.beuc.net/sdl.wiki/SDL_SetVideoMode for details:
> Also note that, in Windows, setting the video mode resets the current OpenGL context. You must execute again the OpenGL initialization code (set the clear color or the shade model, or reload textures, for example) after calling SDL_SetVideoMode. In Linux, however, it works fine, and the initialization code only needs to be executed after the first call to SDL_SetVideoMode (although there is no harm in executing the initialization code after each call to SDL_SetVideoMode, for example for a multiplatform application).
2015-08-24 19:43:06 +02:00
Piotr Dziwinski
60f0a7b45c
Get rid of "blacklisting shadowXX.png" logs
2015-08-22 18:17:57 +02:00
Piotr Dziwinski
c3d4d46583
Fix missing empty line after license header
2015-08-22 17:52:07 +02:00
Piotr Dziwinski
b93f610930
Fix license header in all files
2015-08-22 16:40:02 +02:00
krzys-h
e1f0c0f91f
Fixed #585
2015-08-19 20:56:04 +02:00
krzys-h
14396847d6
Added missing license headers again
2015-08-19 20:27:29 +02:00
krzys-h
d723295aad
Revert "Backported some thread classes cleanup from dev-threads (1ad8ff6e47fb9e249e6bcbc2f4a3a94933a1168a)"
...
This reverts commit 7cf73c94c4
.
I wanted to make this better but failed so badly ;) The memory holding the thread function pointer may be freed before the thread is started, so the whole resource passing thing is needed anyway.
This probably fixes #584
2015-08-19 20:25:17 +02:00
krzys-h
27bbc27948
Fixed object creation after loading save file
...
Looks like @piotrdz broke it when creating the ObjectCreateParams struct. I'm kinda suprised this remained unnoticed for so long ;)
Reported in issue #570
2015-08-19 20:06:55 +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
krzys-h
8421189716
Merge branch 'dev-cbot-syntax-highlighting' into dev ( #575 )
2015-08-18 23:01:02 +02:00
krzys-h
e91ecbbb01
Removed unused references to effect03.png from the code
2015-08-18 22:59:31 +02:00
krzys-h
d6a946618e
Syntax highlighting in SatCom
2015-08-18 22:35:38 +02:00
krzys-h
1c0fc21e2b
Made all colors a bit darker
2015-08-18 22:12:00 +02:00
krzys-h
3fe44be5d5
Fixed no monospace font in the editor
2015-08-18 22:12:00 +02:00
krzys-h
c5da68d516
New CBot syntax highlighting
2015-08-18 22:12:00 +02:00
krzys-h
371621ced4
Render trace colors in the code instead of using texture
2015-08-18 22:11:04 +02:00
krzys-h
b086c52b14
Render some things in code instead of using effect03.png texture (in CEdit)
2015-08-18 21:04:00 +02:00
krzys-h
eef76a9b29
Fixed not working Converter, closes #574
2015-08-18 19:38:58 +02:00
krzys-h
118ceaa099
Fixed music stopping during apperance phase, closes #573
2015-08-18 19:33:01 +02:00
krzys-h
28925106e4
Cleaned up some long lists of ifs
2015-08-18 12:29:41 +02:00
krzys-h
a5c84b9a1e
Removed unused OBJECT_FIX and OBJECT_FRET
2015-08-18 11:43:41 +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
2dbacc28b5
Fixed too small AlienAnt damage
2015-08-17 22:05:26 +02:00
krzys-h
63b4849275
Fixed #561
2015-08-17 21:57:53 +02:00
krzys-h
1717fe071e
Removed unused variables
2015-08-17 21:42:18 +02:00
Piotr Dziwinski
6534978dea
Refactor Character::posPower
2015-08-17 21:28:30 +02:00
krzys-h
98748d757f
Fixed paths to RemoveDirectory
2015-08-17 21:03:40 +02:00
krzys-h
7e028977bd
Implemented emergency save on crash, closes #572
2015-08-17 20:56:42 +02:00
krzys-h
ee9457f156
Fixed failing assert in CMotionHuman with Tech
2015-08-17 19:32:17 +02:00
krzys-h
d5a468df46
Fixed regex in checking object.factory parameter
2015-08-17 19:30:27 +02:00
krzys-h
1185bd4c36
Fixed OrgaMatter destroying itself and the wasp
2015-08-17 19:12:58 +02:00
krzys-h
0bff05f095
Fixed problems with motor() + fire() in CBot while the robot was selected
2015-08-17 18:26:09 +02:00
krzys-h
1059ae37c1
Shielder subclass
2015-08-17 14:06:31 +02:00
krzys-h
63bee182d2
Moved SetFixed/GetFixed to CBaseAlien
2015-08-17 13:19:21 +02:00