1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
Commit Graph

1745 Commits

Author SHA1 Message Date
husho
81781a53ed Various opcodes (#499)
Various opcodes
2018-06-17 23:23:20 -05:00
darkf
1574ebb83c
Merge pull request #511 from madebr/ctest_retry
ctest: increase the retry count for cdash test submissions
2018-06-17 17:42:37 -05:00
Anonymous Maarten
2d9711b014 conan: update glm to 0.9.9.0 2018-06-17 16:24:50 +02:00
darkf
d0c07db836
Merge pull request #513 from madebr/ub_characterobject
rwgame: remove undefined behavior in CharacterObjects
2018-06-15 11:05:08 -05:00
Anonymous Maarten
46b94bd1ed rwgame: remove undefined behavior in CharacterObjects
Fixes this warning:
/home/maarten/programming/openrw/rwengine/src/objects/CharacterObject.cpp:202:54: runtime error: downcast of address 0x00000ae11d00 which does not point to an object of type 'PlayerController'
0x00000ae11d00: note: object is of type 'DefaultAIController'
 00 00 00 00  58 91 ca 00 00 00 00 00  e0 2e 90 0b 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'DefaultAIController'
/home/maarten/programming/openrw/rwengine/src/objects/CharacterObject.cpp:202:75: runtime error: member call on address 0x00000ae11d00 which does not point to an object of type 'PlayerController'
0x00000ae11d00: note: object is of type 'DefaultAIController'
 00 00 00 00  58 91 ca 00 00 00 00 00  e0 2e 90 0b 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'DefaultAIController'
/home/maarten/programming/openrw/rwengine/src/ai/PlayerController.hpp:66:16: runtime error: member access within address 0x00000ae11d00 which does not point to an object of type 'PlayerController'
0x00000ae11d00: note: object is of type 'DefaultAIController'
 00 00 00 00  58 91 ca 00 00 00 00 00  e0 2e 90 0b 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'DefaultAIController'
2018-06-15 16:24:23 +02:00
darkf
36e4cf498e
Merge pull request #512 from ShFil119/patch-3
Fix UB in gamestate
2018-06-14 19:47:31 -05:00
Filip Gawin
625ebdcb90
Fix UB in gamestate 2018-06-14 17:06:08 +02:00
Anonymous Maarten
9919fe5641 vs: Add convenience script to create a Visual Studio solution 2018-06-14 17:03:17 +02:00
Anonymous Maarten
adb5c32da2 ctest: increase the retry count for test submissions
Default retry count is 0 (=do not retry)
2018-06-14 15:55:33 +02:00
Anonymous Maarten
7d2da28dbc cmake: add ability to compile using conan package manager 2018-06-14 02:26:18 +02:00
Anonymous Maarten
1839b9c29d ctest: allow script_ci.sh to run on non CI machine 2018-06-14 02:18:10 +02:00
Anonymous Maarten
0c3dc78916 docker: add user to sudo group in docker image (only applicable for ubuntu) 2018-06-14 02:18:10 +02:00
Anonymous Maarten
cd55d17639 cmake: do not link to SDL2main library 2018-06-14 02:18:10 +02:00
Anonymous Maarten
4f98e363ce rwviewer: Visual Studio does not know about #warning 2018-06-14 02:18:10 +02:00
Anonymous Maarten
e4788b4229 cmake: add configuration option for static Boost 2018-06-14 02:18:06 +02:00
Anonymous Maarten
b6a2b2181d cmake: do not override find modules but wrap them separately 2018-06-14 02:10:54 +02:00
Anonymous Maarten
8f70b36d6f cmake: include all dependencies at top of main CMakeLists.txt 2018-06-14 02:10:54 +02:00
Anonymous Maarten
d2844264d9 rwgame+tests: include SDL2 as "#include <SDL.h>" 2018-06-14 02:10:54 +02:00
Anonymous Maarten
8f86154ec8 cmake: expand module path before configure rw_interface 2018-06-14 02:10:54 +02:00
husho
23072a5e99 Implement script timer (#500)
Added script timer
2018-06-12 13:05:50 -05:00
NFSMONSTR
85785b04e0 Don't draw asterisks in subtitles (#510)
Don't draw asterisks in subtitles
2018-06-09 10:23:16 -05:00
darkf
e17f17cbce
Merge pull request #503 from madebr/cpack
Use CPack to create archives on appveyor
2018-06-08 21:11:43 -05:00
Anonymous Maarten
92cb999368 cmake: echo GIT SHA1 during configuration 2018-06-08 18:31:48 +02:00
Anonymous Maarten
52a9cc42f5 rwlib: create librw library instead of librwlib library 2018-06-08 18:30:25 +02:00
Anonymous Maarten
7d18898e2c cmake: only install shared libraries 2018-06-08 18:30:25 +02:00
Anonymous Maarten
7aaa8e5527 appveyor: push build artifact 2018-06-08 18:30:25 +02:00
Anonymous Maarten
2da3660e23 cmake: use cpack to create archives 2018-06-08 18:30:25 +02:00
Anonymous Maarten
e3c0b00453 cmake: use GNUInstallDirs for install paths + install everything (optionally) 2018-06-08 18:30:25 +02:00
darkf
10b18dada2
Merge pull request #403 from madebr/clangtidy
Add clang-tidy support
2018-06-08 09:30:18 -05:00
darkf
8e6d4e2874
Merge pull request #396 from ShFil119/impr/sanitizers
Add sanitizers
2018-06-08 09:15:47 -05:00
darkf
64ecec3650
Merge pull request #502 from husho/fade2
Fade fix part 2
2018-06-08 09:08:21 -05:00
darkf
e0e09ba074
Merge pull request #488 from husho/refactor
Refactor: moved getPlayer to World class
2018-06-08 09:07:45 -05:00
Filip Gawin
e88d67bc5a Remove none sanitizer Thx @madebr 2018-06-08 10:18:05 +02:00
Filip Gawin
ec92476818 Add sanitizers
Leak sanitizer - tracks leaks.

Address sanitizer - like above and
prohibiteted operations on memory.

Thread sanitizer - tracks data races.

Undefined behaviour - like name says. ;)
2018-06-08 09:35:31 +02:00
husho
cc81aa1d5b Fix vehicle damage
Damage was only applied if there was an impulse/impact
2018-06-08 08:16:37 +03:00
Anonymous Maarten
1e6f9a1edc cmake: detect clang-tidy using cmake module + add helper function 2018-06-07 04:55:21 +02:00
Anonymous Maarten
c862da5ac1 cmake: add clang-tidy autofix option 2018-06-07 04:55:21 +02:00
Anonymous Maarten
6e33af303e cmake: add support clang-tidy (=C/C++ linter) 2018-06-07 04:55:21 +02:00
husho
dc3b3c32d1 Enable blending for fades. Thanks to @NFSMONSTR 2018-06-05 08:28:16 +03:00
husho
04c3b62f01 Load splash 2018-06-05 03:01:42 +03:00
husho
e98cb05c47 Fade fix part2 2018-06-04 16:30:05 +03:00
darkf
070f58809e
Merge pull request #470 from husho/patch-1
Fade fix
2018-06-03 18:11:36 -05:00
darkf
62513421f3
Merge pull request #494 from NFSMONSTR/Fix_single_line_help_messages
Fixed one line help messages background too small
2018-06-03 18:10:01 -05:00
darkf
02373968c8
Merge pull request #496 from ShFil119/smallFixes
Remove potential source of bugs
2018-06-03 09:22:56 -05:00
husho
4d28701daa Partial fix for duped cars & peds in first mission 2018-06-03 03:41:28 +03:00
husho
ca576ac3cf Refactor: moved getPlayer to World class 2018-06-03 03:40:59 +03:00
husho
304fb976ad Fade fix 2018-06-02 02:54:00 +03:00
Filip Gawin
4f07af11bb Prevent possibility of reading garbage 2018-06-02 01:33:17 +02:00
Filip Gawin
0eab89eb13 Fix dereference nullptr in CharacterObject 2018-06-02 01:32:06 +02:00
Filip Gawin
0abe8ca211 Fix derefencing nullptr in VehicleObject
Logic error: Called C++ object pointer is null
 1: Assuming 'enable' is not equal to 0 in /home/filip/Projekty/qt/
small/rwengine/src/objects/VehicleObject.cpp:708
 2: Assuming pointer value is null in /home/filip/Projekty/qt/small/
rwengine/src/objects/VehicleObject.cpp:709
 3: Called C++ object pointer is null in /home/filip/Projekty/qt/small/
rwengine/src/objects/VehicleObject.cpp:716
2018-06-02 01:17:13 +02:00