alter res

This commit is contained in:
rlar 2015-05-09 18:44:08 +02:00
parent 93354e7b73
commit 1a771f1bd8
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ RESparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
if ( AlmostEqualUlps( value->rValue, 0, 3 ) ) value->rValue = 0.001; /* 0.001 should be sufficiently small */
here->RESresist = value->rValue;
here->RESresGiven = TRUE;
here->RESconduct = 1.0 / here->RESresist;
break;
case RES_ACRESIST:
here->RESacResist = value->rValue;