Исправление ошибок
This commit is contained in:
parent
1d71499845
commit
daddb88352
@ -28,7 +28,7 @@ namespace Sailboat.Generics
|
||||
/// <summary>
|
||||
/// Размер занимаемого объектом места (ширина)
|
||||
/// </summary>
|
||||
private readonly int _placeSizeWidth = 160;
|
||||
private readonly int _placeSizeWidth = 170;
|
||||
/// <summary>
|
||||
/// Размер занимаемого объектом места (высота)
|
||||
/// </summary>
|
||||
@ -114,7 +114,7 @@ namespace Sailboat.Generics
|
||||
{
|
||||
for (int j = 0; j < _pictureHeight / _placeSizeHeight +
|
||||
1; ++j)
|
||||
{//линия рамзетки места
|
||||
{//линия разметки места
|
||||
g.DrawLine(pen, i * _placeSizeWidth, j *
|
||||
_placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j *
|
||||
_placeSizeHeight);
|
||||
|
@ -136,9 +136,9 @@ namespace Sailboat.Generics
|
||||
return false;
|
||||
}
|
||||
|
||||
using (StreamReader fs = File.OpenText(filename))
|
||||
using (StreamReader bs = File.OpenText(filename))
|
||||
{
|
||||
string str = fs.ReadLine();
|
||||
string str = bs.ReadLine();
|
||||
if (str == null || str.Length == 0)
|
||||
{
|
||||
return false;
|
||||
@ -151,7 +151,7 @@ namespace Sailboat.Generics
|
||||
_boatStorages.Clear();
|
||||
string strs = "";
|
||||
|
||||
while ((strs = fs.ReadLine()) != null)
|
||||
while ((strs = bs.ReadLine()) != null)
|
||||
{
|
||||
if (strs == null)
|
||||
{
|
||||
|
@ -56,8 +56,8 @@ namespace Sailboat.DrawingObjects
|
||||
{
|
||||
y = 0;
|
||||
}
|
||||
_startPosX = x;
|
||||
_startPosY = y + 18;
|
||||
_startPosX = x + 5;
|
||||
_startPosY = y + 17;
|
||||
}
|
||||
public bool CanMove(DirectionType direction)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user