Fabian Woltermann
7bf700f173
Merge pull request #105 from MageKing17/mantis/3139
...
Fix Mantis #3139 .
2015-05-18 18:21:49 +02:00
m!m
8502c66e7c
Merge pull request #108 from niffiwan/coverity/1298258
...
Fix Coverity 1298258: Uninitialized scalar var
2015-05-18 11:46:56 +02:00
niffiwan
2d832dd11e
Fix Coverity 1298255: Uninitialized scalar var
...
Copy particle min/max life values from modelinterp
Also avoid double->float conversion
2015-05-16 21:51:39 +10:00
asarium
cc9109843a
Fix for Coverity 1093690: Resource leak
...
This introduces a move constructor for CJumpNode to handle freeing resources.
2015-05-16 11:20:20 +02:00
niffiwan
1deb837973
Merge pull request #102 from asarium/fix/noallocator
...
Remove SCP_vm_allocator
2015-05-16 14:13:44 +10:00
niffiwan
3859d16640
Fix Coverity 1298258: Uninitialized scalar var
...
Also fixes 1298256, 1298254, 1298253
For vertex vars use default value-initialisation to zero the struct
http://en.cppreference.com/w/cpp/language/value_initialization
Note that parts of vertex don't seem used in relevant codepaths, e.g.
the colours. A zero init approach should be safer should code change in
future.
2015-05-16 12:44:56 +10:00
MageKing17
e68261bbf3
Merge pull request #107 from niffiwan/coverity/1298268
...
Fix Coverity 1298268: Division by float zero
2015-05-15 19:01:37 -07:00
niffiwan
6512edec77
Fix Coverity 1298268: Division by float zero
...
The div-by-zero won't be triggered by this code because the
secondaryteam is "none". Play it safe and protect the div anyway
2015-05-16 10:59:15 +10:00
niffiwan
2910a7a6eb
Fix Coverity 1298261 Missing break in switch
2015-05-16 10:36:30 +10:00
MageKing17
8efbd74cf0
Fix Mantis #3139 .
...
This make ship explosion shockwaves use the tabled damage type. The code was creating a new shockwave_create_info object, initializing it, and then only copying some of the attributes of the ship's "shockwave" shockwave_create_info member (not including damage type). It makes more sense to use copy-assignment and then specifically override the attributes that should be overridden.
2015-05-15 16:40:25 -07:00
asarium
762e7c3e24
Remove SCP_vm_allocator
2015-05-15 23:39:15 +02:00
Lari Nieminen
268c2558d5
Fixed a bug with the next/prev subsystem targeting keys not working if the target only has one subsystem.
2015-05-15 15:16:58 +03:00
niffiwan
9147fc483f
Merge pull request #52 from asarium/fix/warnings
...
Fix compilation warnings
2015-05-15 20:37:58 +10:00
Fabian Woltermann
450bc83068
Merge pull request #99 from SamuelCho/fog_shader_fix
...
Fix errors when model shader variants use fog but don't use diffuse maps.
2015-05-15 08:11:42 +02:00
SamuelCho
65d3d59c0f
Fix errors when model shader variants use fog but don't use diffuse maps.
2015-05-14 22:40:43 -07:00
asarium
e677ed7657
Fix warning 'allocate_poly_list' : unreferenced local function has been removed
2015-05-14 17:37:41 +02:00
niffiwan
bf13e5053e
Merge branch 'master' into ln-zookeeper-master
...
Conflicts:
code/ai/ai_profiles.cpp
2015-05-14 19:38:19 +10:00
Fabian Woltermann
f6093feceb
Merge pull request #94 from MageKing17/bugfix/bomb-invulnerability
...
Make an AI profile flag for the aspect bomb invulnerability fix.
2015-05-14 10:54:56 +02:00
asarium
77283e9c7a
Fix conversion warnings
2015-05-14 10:45:32 +02:00
asarium
f7a22d7ed0
Fix BM_TYPE to ubyte conversion warnings
2015-05-14 10:45:31 +02:00
asarium
ab1b12fdd6
Fix "conversion from 'SPPHRASERNG' to 'ULONG'" warning
2015-05-14 10:45:30 +02:00
asarium
d5938614c1
Fix "forcing value to bool 'true' or 'false'" warning
2015-05-14 10:45:29 +02:00
asarium
83bb7e144f
Fix unused function warning
2015-05-14 10:45:29 +02:00
asarium
65b1569df2
Fix macro redefinition warning
2015-05-14 10:45:28 +02:00
asarium
b849eec785
Fix "conversion from 'BM_TYPE' to 'ubyte'" warning
2015-05-14 10:45:27 +02:00
asarium
b883ebc038
Fix usage of uninitialized variable warning
2015-05-14 10:45:26 +02:00
asarium
3cfbcbe363
Fix signed < unsigned warning
2015-05-14 10:45:25 +02:00
SamuelCho
5255f129dc
Fixed gradient brackets in ship select screen. Fixed lighting for transparent meshes when using deferred lighting.
2015-05-13 20:38:17 -07:00
MageKing17
9555602823
Make an AI profile flag for the aspect bomb invulnerability fix.
...
Originally introduced in r8696 back in 2012 (hash d7d6009ea1 ), this fix changes retail balance and should be behind a flag.
2015-05-13 20:15:27 -07:00
Lari Nieminen
2c1d1b12cc
Allowed bay path speed modifiers to function in both pathing modes.
2015-05-13 00:35:40 +03:00
Lari Nieminen
133f059b8d
Merge branch 'master' of https://github.com/scp-fs2open/fs2open.github.com
2015-05-13 00:21:04 +03:00
Fabian Woltermann
5dfbc6d292
Merge pull request #88 from SamuelCho/soft_shadows_deferred_lighting
...
Soft shadows, deferred lighting, and various graphics improvements and optimizations
2015-05-12 20:06:33 +02:00
Lari Nieminen
4fbf65ae8b
Warn about bay path speed multipliers currently only working with the 'alt1' pathing type.
2015-05-11 19:50:13 +03:00
Lari Nieminen
c9ec754eb6
Fixed $bay arrive/depart speed multiplier not working correctly.
2015-05-11 19:09:55 +03:00
niffiwan
1fe476a9e2
Merge pull request #79 from asarium/mantis/3134
...
From LotF: Fix for Mantis 3134
2015-05-10 21:45:25 +10:00
Lari Nieminen
ffed62372f
Added ai_profiles and path metadata options to force AI ships flying bay paths to gradually accelerate/decelerate instead of flying the path at max speed.
2015-05-10 11:52:09 +03:00
Lari Nieminen
24d16213a6
Avoid loading the anchor ship model multiple times when resolving path masks.
2015-05-10 02:23:44 +03:00
Lari Nieminen
7a8c7cc6c2
Revert a part of f6e2f1d2 / r11129 which causes collision problems in some corner cases.
2015-05-09 13:42:12 +03:00
niffiwan
c85904b3c5
Merge pull request #85 from MageKing17/bugfix/random-multiple-of
...
Fix random-multiple-of.
2015-05-09 19:47:23 +10:00
niffiwan
d69b7d7e0d
Add newline to Assertion msg
2015-05-09 18:27:20 +10:00
niffiwan
93a5d82ca8
Fix Coverity 1093714: Negative array index read
...
This is very unlikely, but add an assertion anyway just in case someone
in future messes us keeping num_primary_banks & primary_bank_weapons in
sync.
2015-05-09 17:08:21 +10:00
SamuelCho
90c8025588
Code cleanup before the big soft shadows and deferred lighting merge into master.
2015-05-08 21:55:28 -07:00
SamuelCho
520b89408e
Fixed warnings related to graphics code additions.
2015-05-08 21:21:20 -07:00
SamuelCho
094c5fe302
Resolve faster ibx and improved profiling merges.
2015-05-08 20:53:59 -07:00
niffiwan
27cdf337fb
Merge pull request #74 from SamuelCho/faster_ibx
...
Greatly increase the generation speed of index buffers.
2015-05-09 13:35:54 +10:00
SamuelCho
96cbfb1fdf
#include <algorithm> to get faster index buffer generation working on Linux.
2015-05-08 20:20:29 -07:00
MageKing17
290d25d6ae
Fix typo in eval_not.
...
Can cause serious problems by accessing Sexp_nodes[-1].value. Caused chief1986 to segfault on OS X.
2015-05-08 16:13:35 -07:00
MageKing17
9ef7aa2432
Fix random-multiple-of.
...
I don't know if I was just tired when I wrote this originally or what, but there were two problems here; one, the for-loop condition was inverted (and since I made it a for-loop instead of a while-loop, I'm not sure why I didn't take out the "break" condition), so its contents would never actually evaluate. Two, the node matching random_argument wasn't being stored anywhere so even if the for-loop condition hadn't been wrong, it would've just used the last valid argument instead of the first argument every time. Fixes GitHub issue #84 .
2015-05-08 16:09:37 -07:00
niffiwan
a39a7530f8
Merge pull request #82 from ln-zookeeper/master
...
Added a "Show Destroyed Subsystems" flag to ship lab for viewing -des…
2015-05-08 20:32:13 +10:00
Fabian Woltermann
77ee6f100b
Merge pull request #83 from asarium/feature/betterGamesndParsing
...
Improve gamesnd modular parsing
2015-05-08 10:32:26 +02:00