исправление порядка добавления
This commit is contained in:
parent
d2e990ba5a
commit
7880fc1215
@ -138,8 +138,9 @@ namespace ProjectElectricLocomotive.Generics
|
||||
continue;
|
||||
}
|
||||
|
||||
int widthCount = _pictureHeight / _placeSizeHeight;
|
||||
drawningLocomotive.SetPosition((i / widthCount) * _placeSizeWidth, (i % widthCount) * _placeSizeHeight);
|
||||
int ColumnCount = _pictureWidth / _placeSizeWidth;
|
||||
int RowsCount = _pictureHeight / _placeSizeHeight;
|
||||
drawningLocomotive.SetPosition((i % ColumnCount) * _placeSizeWidth, ((RowsCount - i / ColumnCount - 1) * _placeSizeHeight));
|
||||
drawningLocomotive.DrawTransport(g);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user