Skip to content

Fix ConvertCard: clamp 'cards' parameter instead of 'card' offset field - #12

Open
torbjorn wants to merge 1 commit into
b2developer:mainfrom
torbjorn:fix-convertcard
Open

torbjorn wants to merge 1 commit into
b2developer:mainfrom
torbjorn:fix-convertcard

Conversation

@torbjorn

Copy link
Copy Markdown

ConvertCard clamped the offset field card (always 12) instead of its cards parameter, so the jail-card network inputs were stuck at 1.0 once set:

- float clamp = Math.Clamp(card, 0.0f, 1.0f);
+ float clamp = Math.Clamp((float)cards, 0.0f, 1.0f);

Fixes #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ConvertCard clamps field 'card' instead of parameter 'cards'

1 participant