Commit 52e62ee
authored
Fix bullet penetration rendering multiple tracers (#1895)
* Draw at most 1 tracer per shot
The bullet penetration logic is recursive, and this could cause bullets
to render multiple tracers per one shot. Check that the current
penetrating force of the shot equals the used weapon's original
penetrating force, i.e. that no surfaces have yet been penetrated.
This asserts that any penetrated surfaces will incur a non-zero
penetration cost.
* Remove dead code1 parent b7e6a66 commit 52e62ee
1 file changed
Lines changed: 23 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| 1782 | + | |
1782 | 1783 | | |
1783 | 1784 | | |
1784 | | - | |
| 1785 | + | |
| 1786 | + | |
1785 | 1787 | | |
1786 | 1788 | | |
1787 | 1789 | | |
| |||
2050 | 2052 | | |
2051 | 2053 | | |
2052 | 2054 | | |
| 2055 | + | |
2053 | 2056 | | |
2054 | 2057 | | |
2055 | 2058 | | |
2056 | 2059 | | |
| 2060 | + | |
2057 | 2061 | | |
2058 | 2062 | | |
2059 | 2063 | | |
| |||
2107 | 2111 | | |
2108 | 2112 | | |
2109 | 2113 | | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2110 | 2127 | | |
2111 | 2128 | | |
2112 | 2129 | | |
| |||
2150 | 2167 | | |
2151 | 2168 | | |
2152 | 2169 | | |
| 2170 | + | |
2153 | 2171 | | |
2154 | 2172 | | |
2155 | 2173 | | |
2156 | 2174 | | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
2157 | 2178 | | |
| 2179 | + | |
2158 | 2180 | | |
2159 | 2181 | | |
2160 | 2182 | | |
| |||
0 commit comments