mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
Eout fix when material thickness = 0
This commit is contained in:
parent
3f6f7a5b98
commit
a7df67628e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user