Page 1 of 1
✅Military fence decoration
Posted: 20 Jul 2017, 00:45
by CommanderABab
Re: Military fence decoration
Posted: 20 Jul 2017, 09:24
by Bearbear76
That's strange
Maybe because it refreshed the texture to it's original state
Re: Military fence decoration
Posted: 20 Jul 2017, 09:28
by Brody Craft
That always happen when you try to make a 3×2 fences
Re: Military fence decoration
Posted: 20 Jul 2017, 13:03
by Lobby
Thank for spotting this issue, I thought I tested it...
The bug is in this code fragment which calculates the rotated frame
Code: Select all
currentFrame & 0xFFFFFFF0 + Direction.rotateCW(currentFrame & 0xF, d.rotation);
The problem is, that the operator & (bitwise and) has a lower precedence than the + operator. The fix is the use of parenthesis
Code: Select all
(currentFrame & 0xFFFFFFF0) + Direction.rotateCW(currentFrame & 0xF, d.rotation);
Re: [Fixed]Military fence decoration
Posted: 20 Jul 2017, 13:34
by BetterBear
How do you know nearly everything about fixing codes
