/
This commit is contained in:
parent
70a62e0085
commit
b777ea4827
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user