socket fixes, fix tank jumping

This commit is contained in:
Vinzenz Schroeter 2024-04-13 16:27:45 +02:00
commit b3dacbd6f6

View file

@ -40,8 +40,8 @@ internal sealed class DrawTanksStep : IDrawStep
if (!TankSpriteAt(dx, dy, orientation))
continue;
var position = tankPosition.GetPixelRelative(dx, dy);
buffer[position.X, position.Y] = true;
var (x, y) = tankPosition.GetPixelRelative(dx, dy);
buffer[(ushort)x, (ushort)y] = true;
}
}
}