This commit is contained in:
Данила 2022-12-04 14:34:23 +04:00
parent 70a62e0085
commit b777ea4827

View File

@ -105,20 +105,20 @@ namespace Locomative
int x = 10; int x = 10;
int y = _pictureHeight - _placeSizeHeight; int y = _pictureHeight - _placeSizeHeight;
int k = 0; int k = 0;
foreach (var plain in _setLoco.GetLoco()) foreach (var loco in _setLoco.GetLoco())
{ {
if ((k + 1) % CountWidth != 0 || k == 0) if ((k + 1) % CountWidth != 0 || k == 0)
{ {
plain?.SetObject(x, y, _pictureWidth, _pictureHeight); loco?.SetObject(x, y, _pictureWidth, _pictureHeight);
plain?.DrawningObject(g); loco?.DrawningObject(g);
x += _placeSizeWidth; x += _placeSizeWidth;
} }
else else
{ {
plain?.SetObject(x, y, _pictureWidth, _pictureHeight); loco?.SetObject(x, y, _pictureWidth, _pictureHeight);
plain?.DrawningObject(g); loco?.DrawningObject(g);
x = 10; x = 10;
y -= _placeSizeHeight; y -= _placeSizeHeight;