Fix essue
This commit is contained in:
parent
867bed0c7c
commit
a5d0649974
@ -11,8 +11,8 @@ public class DrawingModernMonorail {
|
|||||||
private int _startPositionX;
|
private int _startPositionX;
|
||||||
private int _startPositionY;
|
private int _startPositionY;
|
||||||
|
|
||||||
private int _drawningMonorailWidth = 160;
|
private int _drawningMonorailWidth = 100;
|
||||||
private final int _drawningMonorailHeight = 55;
|
private final int _drawningMonorailHeight = 40;
|
||||||
|
|
||||||
public EntityModernMonorail getMonorail() {return _entityMonorail;}
|
public EntityModernMonorail getMonorail() {return _entityMonorail;}
|
||||||
public DrawingWheels getWheels() {return _wheels;}
|
public DrawingWheels getWheels() {return _wheels;}
|
||||||
@ -24,6 +24,7 @@ public class DrawingModernMonorail {
|
|||||||
_entityMonorail.Initialization(speed, weight, bodyColor, additionalColor, monorailTrack, cabin);
|
_entityMonorail.Initialization(speed, weight, bodyColor, additionalColor, monorailTrack, cabin);
|
||||||
_wheels = new DrawingWheels();
|
_wheels = new DrawingWheels();
|
||||||
Random rnd = new Random();
|
Random rnd = new Random();
|
||||||
|
if (_entityMonorail.getCabin()) _drawningMonorailWidth = 190;
|
||||||
_wheels.SetCountWheels(2 + rnd.nextInt(0, 3));
|
_wheels.SetCountWheels(2 + rnd.nextInt(0, 3));
|
||||||
_wheelsSeed = rnd.nextInt(0, 2);
|
_wheelsSeed = rnd.nextInt(0, 2);
|
||||||
}
|
}
|
||||||
@ -231,7 +232,7 @@ public class DrawingModernMonorail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_wheels.DrawWheels(g2, coordinatesX, _startPositionY + 30, _entityMonorail.getAdditionalColor());
|
_wheels.DrawWheels(g2, coordinatesX , _startPositionY + 30, _entityMonorail.getAdditionalColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user