♪♫ Wer will lustige Schweifklammern sehn, der muss ins inf3 praktikum geh'n ♫ ♪
This commit is contained in:
@@ -30,11 +30,13 @@ namespace WorldOfPeacecraft
|
||||
public override void SetPos (int x, int y)
|
||||
{
|
||||
bool positionChanged = false;
|
||||
if (x != GetX() || y != GetY ())
|
||||
if (x != GetX () || y != GetY ()) {
|
||||
positionChanged = true;
|
||||
}
|
||||
base.SetPos (x, y);
|
||||
if (positionChanged && LocationChanged != null)
|
||||
LocationChanged(x, y);
|
||||
if (positionChanged && LocationChanged != null) {
|
||||
LocationChanged (x, y);
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
||||
Reference in New Issue
Block a user