mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Fixed tank tread rects
This commit is contained in:
parent
a82a6f4324
commit
6cc30e6ebd
7 changed files with 13 additions and 12 deletions
|
|
@ -530,7 +530,7 @@ public class Generators{
|
|||
for(int r = 0; r < type.treadRects.length; r++){
|
||||
Rect treadRect = type.treadRects[r];
|
||||
//slice is always 1 pixel wide
|
||||
Pixmap slice = pix.crop((int)treadRect.x, (int)treadRect.y, 1, (int)treadRect.height);
|
||||
Pixmap slice = pix.crop((int)(treadRect.x + pix.width/2f), (int)(treadRect.y + pix.height/2f), 1, (int)treadRect.height);
|
||||
int frames = type.treadFrames;
|
||||
for(int i = 0; i < frames; i++){
|
||||
int pullOffset = type.treadPullOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue