mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
* Fixes CTD with decals on dying ships If a ship was getting shot with weapons that used decals, the decal code would hit an assertation, because the invalid decals were not being all removed. This PR updates the decal cleanup loop, to ensure that no decals are missed and all invalid ones are removed. Tests confirm this fixes the issue. Also cleaned up some comments and moved another assertation before setting of variables. * Exposes modder useful options to decals Now that decals are very stable, this PR exposes two options that are very useful for using decals, a random range for the radius along with the option to have a random rotation when the decal is created. Tested and everything works as expected. * add script ability to toggle decals * properly use set arg not func * fix two minor things in decal shader * one more cleanup line * fixes