Nicolas Hake
baad3aef3c
C4ScriptHost: add const proplist accessor
...
This accessor does not need to be virtual itself, because we don't want
people to override it; it calls the nonconst accessor anyway, which is
virtual.
2016-04-24 14:01:23 +02:00
Nicolas Hake
96223f154c
C4ValueMapNames: mark GetItemNr const
...
It doesn't change anything, so callers don't need a nonconst object.
2016-04-24 14:01:23 +02:00
Nicolas Hake
607eb8e246
Aul tests: Test conditionals
2016-04-24 14:01:23 +02:00
Nicolas Hake
2eba2e72f3
Aul tests: Test parameter passing
2016-04-24 14:01:23 +02:00
Nicolas Hake
79b6d993df
Aul tests: Test nested loops, loop control statements
2016-04-24 14:01:23 +02:00
Nicolas Hake
d21f75829d
Aul tests: stop GMock from complaining about uninteresting log calls
2016-04-24 14:01:23 +02:00
Nicolas Hake
caf44e2473
Remove specious space from Aul operator table
2016-04-24 14:01:23 +02:00
Nicolas Hake
8f9cbc88f7
Update the .natvis
...
for nicer display of function names and Aul bytecode.
2016-04-24 14:01:23 +02:00
Nicolas Hake
770be2dafe
Aul: Allow AB_ERR to carry more detailed error information
2016-04-24 14:01:23 +02:00
Nicolas Hake
367f58b1cc
C4AulParseError: Enable creation from host and source pointer
...
Instead of having a C4AulParseError constructor read the location data
from the parse state, allow explicit construction from a known location.
2016-04-24 14:01:23 +02:00
Nicolas Hake
cfdb1142b8
Move C4AulParse declaration into separate header
2016-04-24 14:01:23 +02:00
Maikel de Vries
3c267bb7dc
making buying in flagpole work when flag is in non-nil object layer
2016-04-24 13:21:16 +02:00
Lukas Werling
5471fe6cff
Fix randomness in particles with identical properties
...
Several issues:
- The RNG wasn't copied with the value provider (which is always
copied), resulting in unseeded RNGs.
- Separate PCG streams with the same seed start with identical values.
As particles often draw only a single value, we just always advance
the RNG a bit to make the streams diverge.
- The C++ specification requires a <= b for its distributions, but that
wasn't guaranteed by the particle startValue/endValue.
2016-04-23 23:29:36 +02:00
Maikel de Vries
cea685f7ea
fix flickering wealth entries for non-first players
2016-04-23 22:20:01 +02:00
Mark
72c7e4dd87
Merge remote-tracking branch 'origin/master' into liquid_container
2016-04-23 11:10:26 +02:00
Maikel de Vries
06e8df86ca
fix FacetBase typos
2016-04-22 23:27:33 +02:00
Maikel de Vries
f46f38511a
add function to determine if ironbomb and dynamite are fusing
2016-04-22 23:27:33 +02:00
Sven Eberhardt
bc32456ac1
Fix crash on Random(0)
2016-04-22 16:44:35 -04:00
Lukas Werling
b0c1d819af
Reduce game list refresh limit to 1 second
2016-04-22 10:50:03 +02:00
Nicolas Hake
8e11bbfd4c
Add pcg headers to IDEs
2016-04-22 00:15:30 +02:00
Nicolas Hake
02c8dc970a
pcg: Make MSVC compatible
...
Still passes all tests of the test suite except for the tests for
a particular class size, which is an odd thing to test for anyway.
2016-04-22 00:15:12 +02:00
Lukas Werling
0fefc7abae
Merge branch 'pcg'
2016-04-21 20:47:34 +02:00
Lukas Werling
e6a39392dd
Use PCG for C4Particle
2016-04-21 20:39:40 +02:00
Lukas Werling
febc5f91bd
Replace rand() with SafeRandom()
2016-04-20 22:42:00 +02:00
Lukas Werling
1f5dc0aec6
Add test scenario for Random() performance
2016-04-20 22:42:00 +02:00
Lukas Werling
1f9c15e388
Allow MapZoom values smaller than 5
2016-04-20 22:42:00 +02:00
Lukas Werling
7005eae55d
Use PCG as random number generator
2016-04-20 22:42:00 +02:00
Sven Eberhardt
f41d3b8869
Fix out-of-bounds memory access in C4Team [sphalerite] #1717
2016-04-19 21:16:47 -04:00
Lukas Werling
250bbf9aa2
Hot Ice: Make use of LoadScenarioSection improvements
2016-04-18 23:05:13 +02:00
Lukas Werling
abf32cf00b
LoadScenarioSection: Allow reloading the current section
2016-04-18 23:03:35 +02:00
Lukas Werling
4a9553bd20
Fix LoadScenarioSection() resetting the Random seed
2016-04-18 22:57:38 +02:00
Nicolas Hake
598f9c10a0
MSVC: Use incremental LTCG
...
Incremental LTCG tries to reuse compiled functions from previous links,
which speeds up link times quite a lot.
2016-04-18 13:50:17 +02:00
Nicolas Hake
f09d26e39f
Merge PR 20: Make memory allocation/deallocation more consistent
2016-04-18 13:49:37 +02:00
Linus Heckemann
042161a627
Fix subsequent deallocation to use free too
2016-04-17 22:56:36 +01:00
David Dormagen
cdcb9a5a53
power display: made text GUI_FitChildren
...
.. so that small resolutions do not lead to even smaller scrollbars next to the power information. It's still not very aesthethic when it's multiline (because it's just so much text) but now it doesn't look horribly broken at least.
2016-04-17 22:28:34 +02:00
David Dormagen
60b9558b56
script GUIs: fixed clipping over parent's boundaries ( #1718 )
...
The window would always use its very own rectangle for clipping - bad luck if it was larger than the parent.
Now children can only additionally restrict the parent rectangle (which defaults to the whole screen at root).
2016-04-17 22:28:34 +02:00
Linus Heckemann
25fd930242
Fix some malloc/free mismatches
...
Discovered with valgrind. Previously, some memory that later gets freed using
free(...) (in StdBuf::Clear) was allocated with new char[...] rather than
malloc, in which case delete[] should be used to free them.
2016-04-17 20:13:33 +01:00
Maikel de Vries
85a6cdbef7
do not apply line transform to grapple hook
2016-04-17 18:11:26 +02:00
Nicolas Hake
8ffc1ab8cb
Apply DrawTransform to meshes too
...
This will make lighting look weird again for meshes flipped via FlipDir.
Avoid doing that until we implement FlipDir for meshes via an internal
MeshTransform.
2016-04-17 17:56:56 +02:00
Maikel de Vries
b7a8b3067f
correctly stop use control when clonk is attached ( #1590 )
2016-04-17 15:13:10 +02:00
Maikel de Vries
21b7d86535
allow windbag usage while hanging on balloon
2016-04-17 14:51:30 +02:00
Maikel de Vries
1210cb7c67
invert balloon deflate controls to be more natural
2016-04-17 14:51:02 +02:00
Maikel de Vries
d6e19026be
fix balloon pushing by windbag ( #1709 )
2016-04-17 14:49:41 +02:00
Maikel de Vries
21a861fabb
unstuck living object from placed wallkits ( #1716 )
2016-04-17 11:38:52 +02:00
Maikel de Vries
34491fbd0d
fix reset of wealth when a player rejoins after game start in worlds
2016-04-17 10:38:30 +02:00
Maikel de Vries
fbc797aac9
fix double grapple hook
2016-04-16 16:59:40 +02:00
Maikel de Vries
0686fdb2fc
fix shift of buy menu entries when clicking an entry
2016-04-16 15:38:34 +02:00
Maikel de Vries
fd36babdfd
add vine to aerobatics and gem grabbers
2016-04-13 22:04:16 +02:00
Maikel de Vries
4d5630ab06
fix branch mesh transformation
2016-04-13 22:03:35 +02:00
Maikel de Vries
790a2fbfcc
vine: spread leaf particles when being grabbed
2016-04-12 23:53:46 +02:00