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 y = _pictureHeight - _placeSizeHeight;
int k = 0;
foreach (var plain in _setLoco.GetLoco())
foreach (var loco in _setLoco.GetLoco())
{
if ((k + 1) % CountWidth != 0 || k == 0)
{
plain?.SetObject(x, y, _pictureWidth, _pictureHeight);
plain?.DrawningObject(g);
loco?.SetObject(x, y, _pictureWidth, _pictureHeight);
loco?.DrawningObject(g);
x += _placeSizeWidth;
}
else
{
plain?.SetObject(x, y, _pictureWidth, _pictureHeight);
plain?.DrawningObject(g);
loco?.SetObject(x, y, _pictureWidth, _pictureHeight);
loco?.DrawningObject(g);
x = 10;
y -= _placeSizeHeight;