Doesn't rotate well.
✅Military fence decoration
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Military fence decoration
That's strange
Maybe because it refreshed the texture to it's original state
Maybe because it refreshed the texture to it's original state
- Brody Craft
- Inhabitant of a Infinity
- Posts: 8034
- Joined: 24 Jan 2017, 11:15
- Location: SE Asia
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Military fence decoration
That always happen when you try to make a 3×2 fences
- Lobby
- Developer
- Posts: 3719
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Military fence decoration
Thank for spotting this issue, I thought I tested it...
The bug is in this code fragment which calculates the rotated frame
The problem is, that the operator & (bitwise and) has a lower precedence than the + operator. The fix is the use of parenthesis
The bug is in this code fragment which calculates the rotated frame
Code: Select all
currentFrame & 0xFFFFFFF0 + Direction.rotateCW(currentFrame & 0xF, d.rotation);
Code: Select all
(currentFrame & 0xFFFFFFF0) + Direction.rotateCW(currentFrame & 0xF, d.rotation);
- BetterBear
- Inhabitant of a Galaxy Cluster
- Posts: 2896
- Joined: 18 Apr 2017, 09:03
- Location: In a place you don't expect.
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: [Fixed]Military fence decoration
How do you know nearly everything about fixing codes 
