1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-23 02:38:51 -05:00

Eout fix when material thickness = 0

This commit is contained in:
Andrej Prochazka 2021-01-15 23:15:18 +01:00 committed by GitHub
parent 3f6f7a5b98
commit a7df67628e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,7 @@ Result calculate(Projectile p, const Material &t, const Config &c){
if(t.thickness()==0){ if(t.thickness()==0){
res.dEdxo = res.dEdxi; res.dEdxo = res.dEdxi;
res.Eout = res.Ein;
return res; return res;
} }